21 #include "hx3d/graphics/geometries/sprite_geometry.hpp" 23 #include "hx3d/graphics/texture.hpp" 29 SpriteGeometry::SpriteGeometry(): Geometry() {
88 unsigned int width = region.
getTexture()->getWidth();
89 unsigned int height = region.
getTexture()->getHeight();
void activateFramebufferMode()
Prepare the sprite for render-to-texture mode.
float getMaxX()
Get the right coordinate.
float getMaxY()
Get the top coordinate.
float getMinY()
Get the bottom coordinate.
void activateTextureMode()
Prepare the sprite for simple texture mode.
void setIndices(std::vector< GLushort > values)
Set the indices.
const Ptr< Texture > & getTexture()
Get the texture.
Defines a rectangle in a texture.
void setAttribute(std::string name, std::vector< float > values)
Set an attribute with values.
void setFromRegion(TextureRegion ®ion)
Set the geometry for a texture region.
float getMinX()
Get the left coordinate.
void uploadAll()
Upload all the buffers to the GPU.