Saga
Saga Game Engine
Loading...
Searching...
No Matches
transform.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "Graphics/modeltransform.h"
4
#include <memory>
5
6
namespace
Saga
{
12
struct
Transform
{
13
std::shared_ptr<GraphicsEngine::ModelTransform>
transform
;
14
15
operator
const
std::shared_ptr<GraphicsEngine::ModelTransform> &()
const
{
return
transform
; }
16
21
Transform
();
22
26
glm::vec3
getPos
()
const
;
27
31
glm::vec3
getUp
()
const
;
32
36
glm::vec3
getForward
()
const
;
37
};
38
}
// namespace Saga
Saga
Definition:
app.cpp:8
Saga::Transform
A wrapper around a shared pointer to a ModelTransform. This tells object where to position themselves...
Definition:
transform.h:12
Saga::Transform::getUp
glm::vec3 getUp() const
Definition:
transform.cpp:13
Saga::Transform::Transform
Transform()
Construct a new Transform object.
Definition:
transform.cpp:5
Saga::Transform::transform
std::shared_ptr< GraphicsEngine::ModelTransform > transform
Definition:
transform.h:13
Saga::Transform::getPos
glm::vec3 getPos() const
Definition:
transform.cpp:9
Saga::Transform::getForward
glm::vec3 getForward() const
Definition:
transform.cpp:19
Components
transform.h
Generated by
1.9.6