#include <DecoratorTiled.h>

Public Types | |
|
typedef std::map < RenderInterface *, TileData > | TileDataMap |
Public Member Functions | |
| Tile () | |
| Constructs the tile with safe default values. | |
| void | CalculateDimensions (Element *element, const Texture &texture) |
| Calculates the tile's dimensions from the texture and texture coordinates. | |
| Vector2f | GetDimensions (Element *element) |
| Get this tile's dimensions. | |
| void | GenerateGeometry (std::vector< Vertex > &vertices, std::vector< int > &indices, Element *element, const Vector2f &surface_origin, const Vector2f &surface_dimensions, const Vector2f &tile_dimensions) const |
Data Fields | |
| int | texture_index |
| Vector2f | texcoords [2] |
| bool | texcoords_absolute [2][2] |
| TileDataMap | data |
| TileRepeatMode | repeat_mode |
| TileOrientation | orientation |
Data Structures | |
| struct | TileData |
| void Rocket::Core::DecoratorTiled::Tile::GenerateGeometry | ( | std::vector< Vertex > & | vertices, | |
| std::vector< int > & | indices, | |||
| Element * | element, | |||
| const Vector2f & | surface_origin, | |||
| const Vector2f & | surface_dimensions, | |||
| const Vector2f & | tile_dimensions | |||
| ) | const |
Generates geometry to render this tile across a surface.
| [out] | vertices | The array to store the generated vertex data. |
| [out] | indices | The array to store the generated index data. |
| [in] | element | The element hosting the decorator. |
| [in] | surface_origin | The starting point of the first tile to generate. |
| [in] | surface_dimensions | The dimensions of the surface to be tiled. |
| [in] | tile_dimensions | The dimensions to render this tile at. |