21 #include "hx3d/graphics/geometries/geometry.hpp" 27 Geometry::Geometry(): BaseGeometry() {}
34 glDisable(GL_CULL_FACE);
37 glEnable(GL_CULL_FACE);
41 glEnable(GL_CULL_FACE);
49 a.second.begin(shader);
53 glDrawArrays(GL_TRIANGLES, 0, _attributes[
"Position"].size());
59 for (
auto& a: _attributes) {
std::map< std::string, AttributeArrayBuffer > _attributes
Attributes map.
CounterClockwise culling: back face.
Culling _cullingType
Current culling.
IndexArrayBuffer _indices
Index array buffer.
virtual void begin(const Ptr< Shader > &shader) override
Begin the use with a shader.
Clockwise culling: front face.
virtual void draw(Ptr< Shader > shader) override
Draw the geometry.
virtual void end(const Ptr< Shader > &shader) override
End the use with a shader.
unsigned int size()
Get the buffer size.
std::shared_ptr< T > Ptr
Quick-typing shared ptr.