mirror of
https://github.com/Relintai/sfw.git
synced 2025-03-11 23:39:09 +01:00
39 lines
695 B
C++
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
|