jade-engine
0.0
|
Public Member Functions | |
BoxSprite (const BoxSpriteParams ¶ms) | |
void | Render (SDL_Renderer *renderer) override |
void | SetScale (const int32_t x, const int32_t y) |
bool | HasHitTest () const override |
![]() | |
Sprite (const SpriteParams ¶ms) | |
Sprite (const ObjectLayer layer, std::shared_ptr< Texture > texture, const int32_t z) | |
void | Render (SDL_Renderer *renderer) override |
void | Clean () override |
void | Tint (const SDL_Color &tintColor) |
void | SetAlpha (const float alpha) |
void | MakeTextureUnique () |
virtual float | GetAlpha () const |
void | SetRotation (const double angle) |
virtual bool | HitTest (const int32_t x, const int32_t y) const |
void | SetSampling (const TextureSampling sampling) |
void | SetSpriteSheetSprite (const std::string &sprite) |
void | SetSpriteSheetMask (const Rectangle &mask) |
const std::string & | GetTextureName () const |
![]() | |
IGameObject () | |
virtual void | Update () |
virtual LoadState | Load (SDL_Renderer *renderer) |
LoadState | GetLoadState () const |
void | SetLoadState (const LoadState newState) |
bool | IsShown () const |
virtual void | Show (const bool show) |
int32_t | GetZ () const |
void | Destroy () |
bool | DestructionWanted () const |
Additional Inherited Members | |
![]() | |
const std::shared_ptr< Transform > | transform |
![]() | |
std::shared_ptr< Texture > | _textureDescription |
const detail::SpriteSheetDescription * | _spriteSheetDescription |
SDL_Texture * | _texture |
bool | _spriteSheetMasked |
Rectangle | _spriteSheetMask |
std::string | _textureName |
bool | _rotated |
float | _alpha |
double | _rotationAngle |
ObjectLayer | _layer |
![]() | |
LoadState | _loadState |
bool | _shown |
int32_t | _z |
|
inlineoverridevirtual |
Return whether the sprite's texture was initialized with hit map.
Reimplemented from JadeEngine::Sprite.
|
overridevirtual |
Triggered every frame while the scene that owns this game object is active, the game object was successfully loaded and the game object is shown.
The trigger order is the following: IScene::PreUpdate -> IGameObject::Load -> IGameObject::Update -> IScene::Update -> IGameObject::Load -> IGameObject::Render.
renderer | The engine's SDL2 renderer that should be used to render the game object. |
Reimplemented from JadeEngine::IGameObject.