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

Sprite defined VBO geometry. More...

#include <sprite_geometry.hpp>

Public Member Functions

void activateFramebufferMode ()
 Prepare the sprite for render-to-texture mode.
 
void activateTextureMode ()
 Prepare the sprite for simple texture mode.
 
void setFromRegion (TextureRegion &region)
 Set the geometry for a texture region.
 
- Public Member Functions inherited from hx3d::graphics::geom::Geometry
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...
 
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

- 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

Sprite defined VBO geometry.

Definition at line 34 of file sprite_geometry.hpp.


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