[DEV] stupid and unneeded modif
This commit is contained in:
parent
cf4bdcf286
commit
c8a5b1f125
@ -119,7 +119,7 @@ void ege::resource::Mesh::draw(mat4& _positionMatrix,
|
||||
//EGE_DEBUG(m_name << " " << m_light);
|
||||
if (_enableDepthTest == true) {
|
||||
gale::openGL::enable(gale::openGL::flag_depthTest);
|
||||
if (false == _enableDepthUpdate) {
|
||||
if (_enableDepthUpdate == false) {
|
||||
glDepthMask(GL_FALSE);
|
||||
}
|
||||
} else {
|
||||
@ -232,7 +232,7 @@ void ege::resource::Mesh::draw(mat4& _positionMatrix,
|
||||
m_GLprogram->unUse();
|
||||
|
||||
if (_enableDepthTest == true){
|
||||
if (false == _enableDepthUpdate) {
|
||||
if (_enableDepthUpdate == false) {
|
||||
glDepthMask(GL_TRUE);
|
||||
}
|
||||
gale::openGL::disable(gale::openGL::flag_depthTest);
|
||||
|
@ -31,8 +31,13 @@ namespace ege {
|
||||
namespace resource {
|
||||
class Mesh : public gale::Resource {
|
||||
public:
|
||||
static std::shared_ptr<ege::resource::Mesh> createGrid(int32_t _lineCount, const vec3& _position=vec3(0,0,0), float _size=1.0f, const std::string& _materialName="basics");
|
||||
static std::shared_ptr<ege::resource::Mesh> createCube(float _size=1.0f, const std::string& _materialName="basics", const etk::Color<float>& _color=etk::color::white);
|
||||
static std::shared_ptr<ege::resource::Mesh> createGrid(int32_t _lineCount,
|
||||
const vec3& _position=vec3(0,0,0),
|
||||
float _size=1.0f,
|
||||
const std::string& _materialName="basics");
|
||||
static std::shared_ptr<ege::resource::Mesh> createCube(float _size=1.0f,
|
||||
const std::string& _materialName="basics",
|
||||
const etk::Color<float>& _color=etk::color::white);
|
||||
public:
|
||||
/**
|
||||
* @not_in_doc
|
||||
|
Loading…
x
Reference in New Issue
Block a user