76 return mRenderContext;
87 for (
auto* ward : mWards)
90 ward->GetTransform().AttachTo(
nullptr);
94 for (
auto* ward : mWards)
RenderResourceContext GetRenderContext() const
Returns the render resource context associated with this actor.
virtual void Update(float deltaTime)
Updates actor logic and root transform state.
void SetScale(const glm::vec3 &scale)
Sets the actor's scale along each axis.
SceneComponent & GetTransform()
Access to the underlying SceneComponent (transform).
SceneComponent mRootComponent
void SetRotation(const glm::vec3 &rotation)
Sets the actor's rotation in degrees.
void Destroy()
Requests deferred destruction of this actor.
virtual void Initialize()
Initializes the actor after creation.
void SetPosition(const glm::vec3 &position)
Sets the actor's position in world space.
const glm::vec3 & GetRotation() const
Gets the actor's rotation (pitch, yaw, roll in degrees).
virtual void Shutdown()
Performs internal cleanup before destruction.
const glm::vec3 & GetPosition() const
Gets the actor's position.
Actor(Scene &scene)
Constructs an Actor associated with a Scene.
const glm::vec3 & GetScale() const
Gets the actor's scale.
Represents a 3D transformable scene component with position, rotation, and scale.
const glm::vec3 & GetPosition() const
Gets the current position.
void AttachTo(SceneComponent *parent)
Attaches this scene component to a parent scene component.
const glm::vec3 & GetRotation() const
Gets the current rotation as Euler angles (in radians).
void SetRotation(const glm::quat &rotation)
Sets the rotation using a quaternion.
void SetPosition(const glm::vec3 &position)
Sets the position of the component in world space.
const glm::vec3 & GetScale() const
Gets the current scale.
void SetScale(const glm::vec3 &scale)
Sets the scale for each dimension.
RenderResourceContext GetRenderResourceContext() const
Retrieves the current RenderResourceContext.
Base class representing a renderable scene.
SceneManager & GetSceneManager()
Gets a reference to the SceneManager that owns this scene.
void DestroyActor(Actor *actor)
Schedules a 3D actor for deferred destruction.
Aggregates pointers to global rendering resource managers.