|
| TileMap (const Nz::Vector2ui &mapSize, const Nz::Vector2f &tileSize, std::size_t materialCount=1) |
| Constructs a TileMap object, containing mapSize tileSize-sized tiles. More...
|
|
| TileMap (const TileMap &TileMap)=default |
|
| TileMap (TileMap &&)=delete |
|
void | AddToRenderQueue (AbstractRenderQueue *renderQueue, const InstanceData &instanceData) const override |
| Adds the TileMap to the rendering queue. More...
|
|
void | DisableTile (const Vector2ui &tilePos) |
| Disable the tile at position tilePos, disabling rendering at this location. More...
|
|
void | DisableTiles () |
| Disable all tiles.
|
|
void | DisableTiles (const Vector2ui *tilesPos, std::size_t tileCount) |
| Disable tileCount tiles at positions contained at tilesPos location, disabling rendering at those locations. More...
|
|
void | EnableIsometricMode (bool isometric) |
| Enable/Disable isometric mode. More...
|
|
void | EnableTile (const Vector2ui &tilePos, const Rectf &coords, const Color &color=Color::White, std::size_t materialIndex=0U) |
| Enable and sets the tile at position tilePos. More...
|
|
void | EnableTile (const Vector2ui &tilePos, const Rectui &rect, const Color &color=Color::White, std::size_t materialIndex=0U) |
| Enable and sets the tile at position tilePos. More...
|
|
void | EnableTiles (const Rectf &coords, const Color &color=Color::White, std::size_t materialIndex=0U) |
| Enable and sets all the tiles. More...
|
|
void | EnableTiles (const Rectui &rect, const Color &color=Color::White, std::size_t materialIndex=0U) |
| Enable and sets all the tiles. More...
|
|
void | EnableTiles (const Vector2ui *tilesPos, std::size_t tileCount, const Rectf &coords, const Color &color=Color::White, std::size_t materialIndex=0U) |
| Enable and sets tileCount tiles at positions contained at tilesPos location, enabling rendering at those locations. More...
|
|
void | EnableTiles (const Vector2ui *tilesPos, std::size_t tileCount, const Rectui &rect, const Color &color=Color::White, std::size_t materialIndex=0U) |
| Enable and sets tileCount tiles at positions contained at tilesPos location, enabling rendering at those locations. More...
|
|
const Vector2ui & | GetMapSize () const |
| Gets the tilemap size (i.e. number of tiles in each dimension) More...
|
|
Vector2f | GetSize () const |
| Returns the size of the tilemap in units (which is equivalent to GetMapSize() * GetTileSize()) More...
|
|
const Tile & | GetTile (const Vector2ui &tilePos) const |
| Returns informations about a particular tile. More...
|
|
const Vector2f & | GetTileSize () const |
| Gets the tile size (i.e. number of units occupied by a tile in each dimension) More...
|
|
bool | IsIsometricModeEnabled () const |
| Gets the actual state of the isometric mode. More...
|
|
TileMap & | operator= (const TileMap &TileMap) |
| Sets the current TileMap with the content of the other one. More...
|
|
TileMap & | operator= (TileMap &&TileMap)=delete |
|
| InstancedRenderable () |
| Constructs a InstancedRenderable object by default.
|
|
| InstancedRenderable (const InstancedRenderable &renderable) |
| Constructs a InstancedRenderable object by assignation. More...
|
|
| InstancedRenderable (InstancedRenderable &&renderable)=delete |
|
virtual | ~InstancedRenderable () |
| Destructs the object and calls OnInstancedRenderableRelease. More...
|
|
virtual bool | Cull (const Frustumf &frustum, const InstanceData &instanceData) const |
| Culls the instanced if not in the frustum. More...
|
|
void | EnsureBoundingVolumeUpdated () const |
| Ensures that the bounding volume is up to date.
|
|
virtual const BoundingVolumef & | GetBoundingVolume () const |
| Gets the bounding volume. More...
|
|
const MaterialRef & | GetMaterial (std::size_t matIndex=0) const |
| Gets one of the material used by the object. More...
|
|
const MaterialRef & | GetMaterial (std::size_t skinIndex, std::size_t matIndex) const |
| Gets one of the material used by the object, independently from the active skin. More...
|
|
std::size_t | GetMaterialCount () const |
| Gets the number of material per skin. More...
|
|
std::size_t | GetSkin () const |
| Gets the current active skin index. More...
|
|
std::size_t | GetSkinCount () const |
| Gets the number of skins this object has. More...
|
|
virtual void | InvalidateData (InstanceData *instanceData, UInt32 flags) const |
| Invalidates data for instanced. More...
|
|
void | SetSkin (std::size_t skinIndex) |
| Changes the active skin. More...
|
|
void | SetSkinCount (std::size_t skinCount) |
| Changes the maximum skin count of the object. More...
|
|
virtual void | UpdateBoundingVolume (InstanceData *instanceData) const |
| Updates the bounding volume. More...
|
|
InstancedRenderable & | operator= (const InstancedRenderable &renderable) |
| Sets the current instanced renderable with the content of the other one. More...
|
|
InstancedRenderable & | operator= (InstancedRenderable &&renderable)=delete |
|
| NazaraSignal (OnInstancedRenderableInvalidateBoundingVolume, const InstancedRenderable *) |
|
| NazaraSignal (OnInstancedRenderableInvalidateData, const InstancedRenderable *, UInt32) |
|
| NazaraSignal (OnInstancedRenderableInvalidateMaterial, const InstancedRenderable *, std::size_t, std::size_t, const MaterialRef &) |
|
| NazaraSignal (OnInstancedRenderableRelease, const InstancedRenderable *) |
|
| NazaraSignal (OnInstancedRenderableResetMaterials, const InstancedRenderable *, std::size_t) |
|
| NazaraSignal (OnInstancedRenderableSkinChange, const InstancedRenderable *, std::size_t) |
|
| RefCounted (bool persistent=true) |
| Constructs a RefCounted object with a persistance aspect. More...
|
|
| RefCounted (const RefCounted &)=delete |
|
| RefCounted (RefCounted &&)=default |
|
virtual | ~RefCounted () |
| Destructs the object. More...
|
|
void | AddReference () const |
| Adds a reference to the object.
|
|
unsigned int | GetReferenceCount () const |
| Gets the number of references to the object. More...
|
|
bool | IsPersistent () const |
| Checks whether the object is persistent. More...
|
|
bool | RemoveReference () const |
| Removes a reference to the object. More...
|
|
bool | SetPersistent (bool persistent=true, bool checkReferenceCount=false) |
| Sets the persistence of the object. More...
|
|
RefCounted & | operator= (const RefCounted &)=delete |
|
RefCounted & | operator= (RefCounted &&)=default |
|
Graphics class that represent several tiles of the same size assembled into a grid This class is far more efficient than using a sprite for every tile.