hx3d
1
2D/3D Simple Game Framework
|
VBO drawing geometry w or w/o indices. More...
#include <geometry.hpp>
Public Member Functions | |
virtual void | draw (Ptr< Shader > shader) override |
Draw the geometry. More... | |
![]() | |
void | addAttribute (std::string name, Attribute attribute) |
Add an attribute. More... | |
void | setAttribute (std::string name, std::vector< float > values) |
Set an attribute with values. More... | |
AttributeArrayBuffer & | getAttribute (std::string name) |
Get an attribute array buffer. More... | |
void | setIndices (std::vector< GLushort > values) |
Set the indices. More... | |
IndexArrayBuffer & | getIndices () |
Get the index array buffer. More... | |
void | setFaceCulling (Culling culling) |
Set the culling type. More... | |
void | uploadAll () |
Upload all the buffers to the GPU. | |
Additional Inherited Members | |
![]() | |
std::map< std::string, AttributeArrayBuffer > | _attributes |
Attributes map. | |
IndexArrayBuffer | _indices |
Index array buffer. | |
Culling | _cullingType |
Current culling. | |
VBO drawing geometry w or w/o indices.
Definition at line 33 of file geometry.hpp.
Draw the geometry.
shader | Shader |
Implements hx3d::graphics::geom::BaseGeometry.
Definition at line 29 of file geometry.cpp.