sfw/sfw/render_core/texture_material.h

39 lines
699 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 6;
}
void bind_uniforms();
void setup_uniforms();
void unbind();
void setup_state();
const char **get_vertex_shader_source();
const char **get_fragment_shader_source();
TextureMaterial();
int32_t projection_matrix_location;
int32_t camera_matrix_location;
int32_t model_view_matrix_location;
int32_t texture_location;
Ref<Texture> texture;
};
#endif // COLORED_MATERIAL_H