[DEBUG] correct the VBO FULL implement
This commit is contained in:
parent
2305cdbbcc
commit
21c6ab2f80
@ -90,7 +90,8 @@ ege::Ray ege::camera::View::getRayFromScreen(const vec2& _offset) {
|
|||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ege::camera::View::drawDebug(ememory::SharedPtr<ewol::resource::Colored3DObject> _draw, ememory::SharedPtr<ege::Camera> _camera) {
|
#ifndef __TARGET_OS__Web
|
||||||
|
void ege::camera::View::drawDebug(ememory::SharedPtr<ewol::resource::Colored3DObject> _draw, ememory::SharedPtr<ege::Camera> _camera) {
|
||||||
mat4 mat;
|
mat4 mat;
|
||||||
if (_camera != sharedFromThis()) {
|
if (_camera != sharedFromThis()) {
|
||||||
mat.identity();
|
mat.identity();
|
||||||
@ -122,4 +123,5 @@ void ege::camera::View::drawDebug(ememory::SharedPtr<ewol::resource::Colored3DOb
|
|||||||
mat.identity();
|
mat.identity();
|
||||||
mat.translate(m_target);
|
mat.translate(m_target);
|
||||||
_draw->drawSphere(1, 3, 3, mat, etk::Color<float>(0.0f, 0.0f, 1.0f, 1.0f));
|
_draw->drawSphere(1, 3, 3, mat, etk::Color<float>(0.0f, 0.0f, 1.0f, 1.0f));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
@ -73,7 +73,9 @@ namespace ege {
|
|||||||
virtual vec3 getViewVector() const;
|
virtual vec3 getViewVector() const;
|
||||||
public:
|
public:
|
||||||
virtual ege::Ray getRayFromScreen(const vec2& _offset);
|
virtual ege::Ray getRayFromScreen(const vec2& _offset);
|
||||||
|
#ifndef __TARGET_OS__Web
|
||||||
virtual void drawDebug(ememory::SharedPtr<ewol::resource::Colored3DObject> _draw, ememory::SharedPtr<ege::Camera> _camera);
|
virtual void drawDebug(ememory::SharedPtr<ewol::resource::Colored3DObject> _draw, ememory::SharedPtr<ege::Camera> _camera);
|
||||||
|
#endif
|
||||||
virtual float getTetha();
|
virtual float getTetha();
|
||||||
virtual float getPsy();
|
virtual float getPsy();
|
||||||
};
|
};
|
||||||
|
@ -60,7 +60,7 @@ void ege::resource::Mesh::init(const std::string& _fileName, const std::string&
|
|||||||
EGE_ERROR("can not instanciate VBO ...");
|
EGE_ERROR("can not instanciate VBO ...");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// TO facilitate some debugs we add a name of the VBO :
|
// TO facilitate some debugs we add a name of the VBO:
|
||||||
m_verticesVBO->setName("[VBO] of " + _fileName);
|
m_verticesVBO->setName("[VBO] of " + _fileName);
|
||||||
// load the curent file :
|
// load the curent file :
|
||||||
std::string tmpName = etk::tolower(_fileName);
|
std::string tmpName = etk::tolower(_fileName);
|
||||||
@ -148,7 +148,7 @@ void ege::resource::Mesh::draw(mat4& _positionMatrix,
|
|||||||
#else
|
#else
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
// position :
|
// colors :
|
||||||
m_GLprogram->sendAttributePointer(m_GLColor, m_verticesVBO, MESH_VBO_COLOR);
|
m_GLprogram->sendAttributePointer(m_GLColor, m_verticesVBO, MESH_VBO_COLOR);
|
||||||
// draw lights :
|
// draw lights :
|
||||||
m_light.draw(m_GLprogram);
|
m_light.draw(m_GLprogram);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user