Game of Ur 0.3.3
This is a computer adaptation of Game of Ur, written in C++ mainly using SDL and OpenGL.
Loading...
Searching...
No Matches
util.hpp
Go to the documentation of this file.
1
11
12#ifndef FOOLSENGINE_UTIL_H
13#define FOOLSENGINE_UTIL_H
14
15#include <glm/glm.hpp>
16
17namespace ToyMaker {
27 glm::mat4 buildModelMatrix(glm::vec4 position, glm::quat orientation, glm::vec3 scale = glm::vec3{1.f, 1.f, 1.f});
28
53 public:
63 double inputLowerBound, double inputUpperBound,
64 double outputLowerBound, double outputUpperBound
65 );
66
73 double operator() (double value) const;
74 private:
85
91
97 };
98}
99
100#endif
double mInputUpperBound
The end of the input range.
Definition util.hpp:84
double mOutputLowerBound
The start of the output range.
Definition util.hpp:90
double mInputLowerBound
The start of the input range.
Definition util.hpp:79
RangeMapperLinear(double inputLowerBound, double inputUpperBound, double outputLowerBound, double outputUpperBound)
Constructs a range mapper with a fixed pair of input and output ranges.
Definition util.cpp:17
double mOutputUpperBound
The end of the output range.
Definition util.hpp:96
double operator()(double value) const
The operation that actually converts a value from its input range into its output range.
Definition util.cpp:29
glm::mat4 buildModelMatrix(glm::vec4 position, glm::quat orientation, glm::vec3 scale=glm::vec3{1.f, 1.f, 1.f})
Converts a position, orientation and scale into its model matrix equivalent.
Definition util.cpp:10
Namespace containing all class definitions and functions related to the ToyMaker engine.
Definition camera_system.hpp:20