Represents an object in a scene.
More...
#include <SceneObject.h>
Represents an object in a scene.
◆ addChildren()
| void VulkanEngine::SceneObject::addChildren |
( |
const std::vector< std::shared_ptr< SceneObject > > & |
_children | ) |
|
Add child SceneObject instances which will inherit the transformation of this SceneObject.
- Parameters
-
| _children | The children to add. |
◆ getTransform()
| const Eigen::Matrix4f VulkanEngine::SceneObject::getTransform |
( |
| ) |
const |
Get the current local transformation matrix.
- Returns
- The current local transformation matrix
◆ postUpdate()
| void VulkanEngine::SceneObject::postUpdate |
( |
std::shared_ptr< SceneState > |
scene_state | ) |
|
|
protectedvirtual |
Update this scene object.
- Parameters
-
| scene_state | Contains information about the current state of the scene. |
◆ preUpdate()
| void VulkanEngine::SceneObject::preUpdate |
( |
std::shared_ptr< SceneState > |
scene_state | ) |
|
|
protectedvirtual |
Update this scene object.
- Parameters
-
| scene_state | Contains information about the current state of the scene. |
◆ setTransform()
| void VulkanEngine::SceneObject::setTransform |
( |
const Eigen::Matrix4f & |
_transform | ) |
|
Set the current local transformation matrix.
- Parameters
-
| _transform | The desired local transformation matrix. |
◆ update()
| void VulkanEngine::SceneObject::update |
( |
std::shared_ptr< SceneState > |
scene_state | ) |
|
|
protectedvirtual |
Update this scene object.
- Parameters
-
| scene_state | Contains information about the current state of the scene. |
Update all children
◆ transform
| Eigen::Matrix4f VulkanEngine::SceneObject::transform |
|
protected |
The transformation matrix of this SceneObject. By default it is set to identity.
The documentation for this class was generated from the following files: