jade-engine
0.0
|
Public Member Functions | |
Tooltip (const TooltipParams ¶ms) | |
void | Update () override |
void | SetPosition (int32_t x, int32_t y) |
void | SetCenterPosition (int32_t x, int32_t y) |
void | Show (const bool shown) override |
int32_t | GetX () const |
int32_t | GetY () const |
int32_t | GetCenterX () const |
int32_t | GetCenterY () const |
int32_t | GetWidth () const |
int32_t | GetHeight () const |
![]() | |
IGameObject () | |
virtual void | Clean () |
virtual LoadState | Load (SDL_Renderer *renderer) |
virtual void | Render (SDL_Renderer *renderer) |
LoadState | GetLoadState () const |
void | SetLoadState (const LoadState newState) |
bool | IsShown () const |
int32_t | GetZ () const |
void | Destroy () |
bool | DestructionWanted () const |
Additional Inherited Members | |
![]() | |
const std::shared_ptr< Transform > | transform |
![]() | |
LoadState | _loadState |
bool | _shown |
int32_t | _z |
|
overridevirtual |
Show or hide game object.
Reimplemented from JadeEngine::IGameObject.
|
overridevirtual |
Triggered every frame while the scene that owns this game object is active and the game object was successfully loaded.
The trigger order is the following: IScene::PreUpdate -> IGameObject::Load -> IGameObject::Update -> IScene::Update -> IGameObject::Load -> IGameObject::Render.
To obtain delta time since last frame use GTime.deltaTime.
Reimplemented from JadeEngine::IGameObject.