BoB robotics
The Brains on Board robotics library
BoBRobotics::AntWorld::Surface Class Reference

Public Types

typedef std::array< GLfloat, 3 > Colour
 

Public Member Functions

void bind () const
 
void unbind () const
 
void bindTextured () const
 
void unbindTextured () const
 
void unbindIndices () const
 
void render (GLenum primitive=GL_TRIANGLES, GLenum indexType=GL_UNSIGNED_INT) const
 
template<typename T >
void uploadPositions (const std::vector< T > &positions, GLint size=3)
 
template<typename T >
void uploadColours (const std::vector< T > &colours, GLint size=3)
 
template<typename T >
void uploadTexCoords (const std::vector< T > &texCoords, GLint size=2)
 
template<typename T >
void uploadIndices (const std::vector< T > &indices)
 
void setTexture (const Texture *texture)
 
void setColour (const Colour &colour)
 

Static Public Attributes

static const Colour DefaultColour = {1.0f, 1.0f, 1.0f}
 

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