![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
#include <Sprite.h>
Inheritance diagram for _Sprite:
Collaboration diagram for _Sprite:Public Member Functions | |
| _Sprite () | |
| virtual | ~_Sprite () override |
| void | Initialize () |
| void | Uninitialize () |
| virtual void | RenderDebug () override |
| virtual void | Render () override |
| void | SetSprite (SDL_Texture *texture) |
| void | SetSprite (const std::string &resourceName, const std::string &filePath) |
| bool | Preload (const std::string &resourceName, const std::string &filePath) |
Public Member Functions inherited from VisualComponent | |
| VisualComponent ()=default | |
| virtual | ~VisualComponent () override=default |
| virtual ComponentType | GetComponentType () const override |
| virtual void | OnEvent (const Message &msg) override |
Public Member Functions inherited from ObjectComponent | |
| ObjectComponent ()=default | |
| virtual | ~ObjectComponent ()=default |
| Object * | GetEntity () const |
| virtual void | SetEntity (Object *_owner) |
| virtual void | Process () |
| virtual void | SetOwner (Object *_owner) |
| Object * | GetOwner () const |
Public Member Functions inherited from Object | |
| Object () | |
| virtual | ~Object () |
| uint64_t | GetUID () const |
Static Public Member Functions | |
| static ObjectComponent * | Create () |
Static Public Attributes | |
| static bool | FactoryRegistered = ObjectFactory::Get().Register("_Sprite", _Sprite::Create) |
Protected Attributes | |
| SDL_Texture * | m_SpriteTexture = nullptr |
Protected Attributes inherited from ObjectComponent | |
| Object * | owner = nullptr |
| GameObject * | gao = nullptr |
Protected Attributes inherited from Object | |
| uint64_t | uid = 0 |
Additional Inherited Members | |
Public Attributes inherited from Object | |
| std::string | name = "unnamed_object" |
Static Protected Attributes inherited from ObjectComponent | |
| static float & | fDt = GameEngine::fDt |
|
inlineexplicit |
Definition at line 8 of file Sprite.h.
References Initialize().
Referenced by Create().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineoverridevirtual |
Definition at line 9 of file Sprite.h.
References Uninitialize().
Here is the call graph for this function:
|
static |
Definition at line 9 of file Sprite.cpp.
References _Sprite().
Here is the call graph for this function:
|
virtual |
Reimplemented from ObjectComponent.
Definition at line 14 of file Sprite.cpp.
Referenced by _Sprite().
Here is the caller graph for this function:Definition at line 59 of file Sprite.cpp.
References DataManager::Get(), GetComponentTypeID_Static(), and DataManager::PreloadSprite().
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from VisualComponent.
Definition at line 31 of file Sprite.cpp.
References ObjectComponent::gao, CameraManager::Get(), GameObject::GetBoundingBox(), CameraManager::GetCameraPositionForActivePlayer(), GetComponentTypeID_Static(), GameObject::GetPosition(), GameObject::GetSize(), m_SpriteTexture, GameEngine::renderer, and GameObject::SetBoundingbox().
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from ObjectComponent.
Definition at line 23 of file Sprite.cpp.
Definition at line 54 of file Sprite.cpp.
References DataManager::Get(), GetComponentTypeID_Static(), and SetSprite().
Here is the call graph for this function:| void _Sprite::SetSprite | ( | SDL_Texture * | texture | ) |
Definition at line 46 of file Sprite.cpp.
References ObjectComponent::gao, m_SpriteTexture, and GameObject::SetSize().
Referenced by Player::Create(), and SetSprite().
Here is the call graph for this function:
Here is the caller graph for this function:| void _Sprite::Uninitialize | ( | ) |
Definition at line 19 of file Sprite.cpp.
Referenced by ~_Sprite().
Here is the caller graph for this function:
|
static |
|
protected |
Definition at line 26 of file Sprite.h.
Referenced by Render(), and SetSprite().