hx3d  1
2D/3D Simple Game Framework
Public Member Functions | List of all members
hx3d::graphics::geom::Geometry Class Reference

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...
 
- Public Member Functions inherited from hx3d::graphics::geom::BaseGeometry
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...
 
AttributeArrayBuffergetAttribute (std::string name)
 Get an attribute array buffer. More...
 
void setIndices (std::vector< GLushort > values)
 Set the indices. More...
 
IndexArrayBuffergetIndices ()
 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

- Protected Attributes inherited from hx3d::graphics::geom::BaseGeometry
std::map< std::string, AttributeArrayBuffer_attributes
 Attributes map.
 
IndexArrayBuffer _indices
 Index array buffer.
 
Culling _cullingType
 Current culling.
 

Detailed Description

VBO drawing geometry w or w/o indices.

Definition at line 33 of file geometry.hpp.

Member Function Documentation

void hx3d::graphics::geom::Geometry::draw ( Ptr< Shader shader)
overridevirtual

Draw the geometry.

Parameters
shaderShader

Implements hx3d::graphics::geom::BaseGeometry.

Definition at line 29 of file geometry.cpp.


The documentation for this class was generated from the following files: