11 #include <gale/resource/Program.hpp> 12 #include <ewol/resource/Image.hpp> 21 int32_t m_GL_ambientFactor;
22 int32_t m_GL_diffuseFactor;
23 int32_t m_GL_specularFactor;
24 int32_t m_GL_shininess;
25 int32_t m_GL_texture0;
36 vec4 m_specularFactor;
38 enum gale::openGL::renderMode m_renderMode;
41 std::vector<uint32_t> m_listIndexFaces;
46 void setAmbientFactor(
const vec4& _val) {
47 m_ambientFactor = _val;
49 void setDiffuseFactor(
const vec4& _val) {
50 m_diffuseFactor = _val;
52 void setSpecularFactor(
const vec4& _val) {
53 m_specularFactor = _val;
55 void setShininess(
float _val) {
58 void setRenderMode(
enum gale::openGL::renderMode _val);
59 enum gale::openGL::renderMode getRenderModeOpenGl();
60 enum gale::openGL::renderMode getRenderMode() {
63 void setTexture0(
const std::string& _filename);
64 void setTexture0Magic(
const ivec2& _size);
66 void setImageSize(
const ivec2& _newSize) {
67 if (m_texture0 ==
nullptr){
70 m_texture0->setImageSize(_newSize);
74 if (m_texture0 ==
nullptr){
77 return &m_texture0->
get();
81 if (m_texture0 ==
nullptr){
const EMEMORY_TYPE * get() const
Definition: AudioElement.hpp:8
Definition: Material.hpp:18
Definition: Material.hpp:31