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
6namespace Saga {
12struct 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
Definition: app.cpp:8
A wrapper around a shared pointer to a ModelTransform. This tells object where to position themselves...
Definition: transform.h:12
glm::vec3 getUp() const
Definition: transform.cpp:13
Transform()
Construct a new Transform object.
Definition: transform.cpp:5
std::shared_ptr< GraphicsEngine::ModelTransform > transform
Definition: transform.h:13
glm::vec3 getPos() const
Definition: transform.cpp:9
glm::vec3 getForward() const
Definition: transform.cpp:19