CSEngine
|
Public Member Functions | |
COMPONENT_DEFINE_CONSTRUCTOR (TransformComponent) | |
void | Init () override |
void | Tick (float elapsedTime) override |
void | Exterminate () override |
SComponent * | Clone (SGameObject *object) override |
mat4 | GetMatrix () const |
vec3 * | GetPosition () |
vec3 | GetScale () const |
Quaternion | GetRotation () const |
void | SetMatrix (const mat4 &matrix) |
void | SetValue (std::string name_str, Arguments value) override |
std::string | PrintValue () const override |
Public Member Functions inherited from CSE::SComponent | |
SComponent (std::string classType, SGameObject *gameObject) | |
SComponent (const SComponent &src) | |
void | Start () override |
virtual void | CopyReference (SComponent *src, std::map< SGameObject *, SGameObject * > lists_obj, std::map< SComponent *, SComponent * > lists_comp) |
virtual auto | GetComponent () -> SObject * |
void | SetGameObject (SGameObject *object) |
virtual SGameObject * | GetGameObject () const |
virtual bool | GetIsEnable () const |
virtual void | SetIsEnable (bool is_enable) |
std::string | GetClassType () const |
void | SetClassType (std::string type) |
Public Member Functions inherited from CSE::SObject | |
SObject (bool isRegister) | |
virtual void | SetUndestroyable (bool enable) |
virtual void | Destroy () |
virtual void | __FORCE_DESTROY__ () |
virtual std::string | GenerateMeta () |
std::string | GetHash () const |
virtual void | SetHash (std::string &hash) |
Public Member Functions inherited from CSE::SISComponent | |
SISComponent (const SISComponent &src)=default | |
Additional Inherited Members | |
Public Attributes inherited from CSE::TransformInterface | |
vec3 | m_position |
Quaternion | m_rotation |
vec3 | m_scale |
Protected Types inherited from CSE::VariableBinder | |
typedef std::vector< std::string > | Arguments |
Protected Attributes inherited from CSE::SComponent | |
SGameObject * | gameObject = nullptr |
bool | isEnable = true |
std::string | m_classType |
Protected Attributes inherited from CSE::SObject | |
std::string | m_hash |
Definition at line 10 of file TransformComponent.h.
|
overridevirtual |
Reimplemented from CSE::SComponent.
Definition at line 79 of file TransformComponent.cpp.
|
overridevirtual |
mat4 TransformComponent::GetMatrix | ( | ) | const |
Definition at line 31 of file TransformComponent.cpp.
vec3 * TransformComponent::GetPosition | ( | ) |
Definition at line 35 of file TransformComponent.cpp.
Quaternion TransformComponent::GetRotation | ( | ) | const |
Definition at line 43 of file TransformComponent.cpp.
vec3 TransformComponent::GetScale | ( | ) | const |
Definition at line 39 of file TransformComponent.cpp.
|
overridevirtual |
|
overridevirtual |
Reimplemented from CSE::SComponent.
Definition at line 99 of file TransformComponent.cpp.
void TransformComponent::SetMatrix | ( | const mat4 & | matrix | ) |
Definition at line 54 of file TransformComponent.cpp.
|
overridevirtual |
Reimplemented from CSE::SComponent.
Definition at line 89 of file TransformComponent.cpp.
|
overridevirtual |
Implements CSE::SISComponent.
Definition at line 19 of file TransformComponent.cpp.