sfw/sfw/render_core/texture_material.h

39 lines
695 B
C++

#ifndef TEXTURE_MATERIAL_H
#define TEXTURE_MATERIAL_H
//--STRIP
#include "render_core/material.h"
#include "render_core/texture.h"
#include "render_core/render_state.h"
//--STRIP
class TextureMaterial : public Material {
SFW_OBJECT(TextureMaterial, Material);
public:
int get_material_id() {
return 3;
}
void bind_uniforms();
void setup_uniforms();
void unbind();
void setup_state();
const GLchar **get_vertex_shader_source();
const GLchar **get_fragment_shader_source();
TextureMaterial();
GLint projection_matrix_location;
GLint camera_matrix_location;
GLint model_view_matrix_location;
GLint texture_location;
Ref<Texture> texture;
};
#endif // COLORED_MATERIAL_H