[DEBUG] correct the VBO FULL implement
This commit is contained in:
parent
2305cdbbcc
commit
21c6ab2f80
@ -90,6 +90,7 @@ ege::Ray ege::camera::View::getRayFromScreen(const vec2& _offset) {
|
||||
return out;
|
||||
}
|
||||
|
||||
#ifndef __TARGET_OS__Web
|
||||
void ege::camera::View::drawDebug(ememory::SharedPtr<ewol::resource::Colored3DObject> _draw, ememory::SharedPtr<ege::Camera> _camera) {
|
||||
mat4 mat;
|
||||
if (_camera != sharedFromThis()) {
|
||||
@ -123,3 +124,4 @@ void ege::camera::View::drawDebug(ememory::SharedPtr<ewol::resource::Colored3DOb
|
||||
mat.translate(m_target);
|
||||
_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;
|
||||
public:
|
||||
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);
|
||||
#endif
|
||||
virtual float getTetha();
|
||||
virtual float getPsy();
|
||||
};
|
||||
|
@ -148,7 +148,7 @@ void ege::resource::Mesh::draw(mat4& _positionMatrix,
|
||||
#else
|
||||
}
|
||||
#endif
|
||||
// position :
|
||||
// colors :
|
||||
m_GLprogram->sendAttributePointer(m_GLColor, m_verticesVBO, MESH_VBO_COLOR);
|
||||
// draw lights :
|
||||
m_light.draw(m_GLprogram);
|
||||
|
Loading…
x
Reference in New Issue
Block a user