Practical Tools for Simple Design
Loading...
Searching...
No Matches
Transform.hpp
1
#ifndef UTIL_TRANSFORM_HPP
2
#define UTIL_TRANSFORM_HPP
3
4
#include <glm/glm.hpp>
5
#include <glm/gtc/matrix_transform.hpp>
6
7
namespace
Util
{
8
16
struct
Transform
{
23
glm::vec2
translation
= {0, 0};
24
32
float
rotation
= 0;
33
40
glm::vec2
scale
= {1, 1};
41
};
42
43
}
// namespace Util
44
45
#endif
/* UTIL_TRANSFORM_HPP */
Util
Useful tools for development.
Definition:
Animation.hpp:12
Util::Transform
A struct representing a transformation in 2D space.
Definition:
Transform.hpp:16
Util::Transform::rotation
float rotation
The rotation of the transformation.
Definition:
Transform.hpp:32
Util::Transform::scale
glm::vec2 scale
The scale of the transformation.
Definition:
Transform.hpp:40
Util::Transform::translation
glm::vec2 translation
The translation of the transformation.
Definition:
Transform.hpp:23
include
Util
Transform.hpp
Generated by
1.9.5