[DEV] add have texture in material
This commit is contained in:
parent
486998fb35
commit
1748e90606
@ -66,6 +66,10 @@ void ege::Material::draw(ememory::SharedPtr<gale::resource::Program> _prog, cons
|
|||||||
EGE_VERBOSE("draw Material: ( end )");
|
EGE_VERBOSE("draw Material: ( end )");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool ege::Material::haveTexture() const {
|
||||||
|
return m_texture0 != null;
|
||||||
|
}
|
||||||
|
|
||||||
void ege::Material::setAmbientFactor(const vec4& _val) {
|
void ege::Material::setAmbientFactor(const vec4& _val) {
|
||||||
m_ambientFactor = _val;
|
m_ambientFactor = _val;
|
||||||
}
|
}
|
||||||
|
@ -56,6 +56,7 @@ namespace ege {
|
|||||||
egami::Image* get();
|
egami::Image* get();
|
||||||
// flush the data to send it at the openGl system
|
// flush the data to send it at the openGl system
|
||||||
void flush();
|
void flush();
|
||||||
|
bool haveTexture() const;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user