Saga
Saga Game Engine
Loading...
Searching...
No Matches
Saga::Transform Struct Reference

A wrapper around a shared pointer to a ModelTransform. This tells object where to position themselves in a 3D scene. More...

#include <transform.h>

Public Member Functions

 operator const std::shared_ptr< GraphicsEngine::ModelTransform > & () const
 
 Transform ()
 Construct a new Transform object.
 
glm::vec3 getPos () const
 
glm::vec3 getUp () const
 
glm::vec3 getForward () const
 

Public Attributes

std::shared_ptr< GraphicsEngine::ModelTransform > transform
 

Detailed Description

A wrapper around a shared pointer to a ModelTransform. This tells object where to position themselves in a 3D scene.

Constructor & Destructor Documentation

◆ Transform()

Saga::Transform::Transform ( )

Construct a new Transform object.

Note
this requests the graphics engine for a model transform.

Member Function Documentation

◆ getForward()

glm::vec3 Saga::Transform::getForward ( ) const
Returns
glm::vec3 the forward vector of the transform.

◆ getPos()

glm::vec3 Saga::Transform::getPos ( ) const
Returns
glm::vec3 the position of the transform.

◆ getUp()

glm::vec3 Saga::Transform::getUp ( ) const
Returns
glm::vec3 the up vector of the transform.

◆ operator const std::shared_ptr< GraphicsEngine::ModelTransform > &()

Saga::Transform::operator const std::shared_ptr< GraphicsEngine::ModelTransform > & ( ) const
inline

Member Data Documentation

◆ transform

std::shared_ptr<GraphicsEngine::ModelTransform> Saga::Transform::transform

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