CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::TransformComponent Struct Referencefinal

#include <CeresEngine/Scene/SceneObject.hpp>

Inheritance diagram for CeresEngine::TransformComponent:
CeresEngine::Component< TransformComponent > CeresEngine::AbstractComponent

Classes

struct  Accessor
 

Public Member Functions

virtual CE_DISABLE_WARNING_MISSING_OVERRIDE ::CeresEngine::ClassInfo getClassInfo () const noexcept
 
virtual ::CeresEngine::ClassInfo getClassInfo () noexcept
 
- Public Member Functions inherited from CeresEngine::Component< TransformComponent >
const ComponentTypegetComponentType () const noexcept final
 Gets the component type.
 
- Public Member Functions inherited from CeresEngine::AbstractComponent
virtual ~AbstractComponent ()=default
 Defaulted virtual destructor.
 

Static Public Member Functions

template<typename Processor >
static constexpr void reflect (Processor &&RTTI)
 Executes the given processor for every field of the struct.
 

Public Attributes

Vector3 position = Vector3(0.0)
 The entity position. Relative to its parent.
 
Quaternion rotation = Quaternion(Vector3(0.0))
 The entity rotation. Relative to its parent.
 
Vector3 scale = Vector3(1.0)
 The entity scale. Relative to its parent.
 

Additional Inherited Members

- Static Public Attributes inherited from CeresEngine::Component< TransformComponent >
static const ComponentID componentID
 This component type ID.
 
static const ComponentMask mask
 The component mask.
 
static const ComponentTypecomponentType
 Gets the component type.
 

Member Function Documentation

◆ getClassInfo() [1/2]

virtual CE_DISABLE_WARNING_MISSING_OVERRIDE ::CeresEngine::ClassInfo CeresEngine::TransformComponent::getClassInfo ( ) const
virtualnoexcept

Reimplemented from CeresEngine::AbstractComponent.

◆ getClassInfo() [2/2]

virtual ::CeresEngine::ClassInfo CeresEngine::TransformComponent::getClassInfo ( )
virtualnoexcept

Reimplemented from CeresEngine::AbstractComponent.

◆ reflect()

template<typename Processor >
static constexpr void CeresEngine::TransformComponent::reflect ( Processor &&  RTTI)
inlinestaticconstexpr

Executes the given processor for every field of the struct.

Parameters
RTTIThe processor to be ran for every field.

Member Data Documentation

◆ position

Vector3 CeresEngine::TransformComponent::position = Vector3(0.0)

The entity position. Relative to its parent.

◆ rotation

Quaternion CeresEngine::TransformComponent::rotation = Quaternion(Vector3(0.0))

The entity rotation. Relative to its parent.

◆ scale

Vector3 CeresEngine::TransformComponent::scale = Vector3(1.0)

The entity scale. Relative to its parent.


The documentation for this struct was generated from the following file: