|
jade-engine
0.0
|
#include <Sprite.h>
Public Attributes | |
| ObjectLayer | layer |
| std::string | textureName |
| int32_t | z |
| bool | spriteSheet |
| std::string | spriteSheetName |
Parameters required to create a Sprite game object.
Template to copy:
| ObjectLayer JadeEngine::SpriteParams::layer |
Layer that will the Sprite belong to.
| bool JadeEngine::SpriteParams::spriteSheet |
Whether the texture is part of a sprite-sheet file or stand-alone texture file.
Affects the meaning of textureName.
If true spriteSheetName must be specified.
| std::string JadeEngine::SpriteParams::spriteSheetName |
Name of the sprite-sheet corresponding to GameInitParamsSpriteSheetEntry::assetName that was used when initializing the game.
Has no effect if spriteSheet is false.
| std::string JadeEngine::SpriteParams::textureName |
Name of the texture that will be rendered by the sprite.
In the case of spriteSheet being false, the textureName must corresponds to assetName in GameInitParams::textures that was used when initializing the game. In the case of spriteSheet being true, the textureName must be the name of one of the files that were packed into sprite-sheet - it must be present in sprite-sheet JSON.
| int32_t JadeEngine::SpriteParams::z |
Z coordinate of the Sprite.
The game objects with higher Z coordinate will be drawn over the ones with lower one.