[DEV] add have texture in material

This commit is contained in:
Edouard DUPIN 2019-04-01 21:59:01 +02:00
parent 486998fb35
commit 1748e90606
2 changed files with 5 additions and 0 deletions

View File

@ -66,6 +66,10 @@ void ege::Material::draw(ememory::SharedPtr<gale::resource::Program> _prog, cons
EGE_VERBOSE("draw Material: ( end )");
}
bool ege::Material::haveTexture() const {
return m_texture0 != null;
}
void ege::Material::setAmbientFactor(const vec4& _val) {
m_ambientFactor = _val;
}

View File

@ -56,6 +56,7 @@ namespace ege {
egami::Image* get();
// flush the data to send it at the openGl system
void flush();
bool haveTexture() const;
};
}