|
ToyMaker Game Engine 0.0.2
ToyMaker is a game engine developed and maintained by Zoheb Shujauddin.
|
Topics | |
| Entity Component System | |
| Resource Database | |
| Signals | |
Files | |
| file | ToyMaker_Main/include/toymaker/engine/registrator.hpp |
| Contains the definition for the Registrator<T> utility class, used anywhere that automatic registration of some kind during the static initialization phase of a program is required. | |
| file | ToyMaker_Main/include/toymaker/engine/util.hpp |
| Contains a couple of classes not tied to any part of the engine in particular, but useful to those parts all the same. | |
Classes | |
| class | ToyMaker::Registrator< TRegisterable > |
| Helper class for registering a class at program startup. More... | |
| class | ToyMaker::RangeMapperLinear |
| A simple linear interpolation implementation between a fixed input and output range. More... | |
Functions | |
| glm::mat4 | ToyMaker::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. | |
| float | ToyMaker::squareDistance (const glm::vec3 &vector) |
| Returns the square of the length of a 3 component vector. | |
| bool | ToyMaker::isFinite (float number) |
| Tests whether a given number is finite. | |
| bool | ToyMaker::isFinite (const glm::vec3 &vector) |
| Tests whether a set of 3 numbers is finite. | |
| bool | ToyMaker::isPositiveStrict (float number) |
| Tests whether a number is strictly positive. | |
| bool | ToyMaker::isPositiveStrict (const glm::vec3 &vector) |
| Tests whether a set of 3 numbers is strictly positive. | |
| bool | ToyMaker::isNumber (float number) |
| Tests whether a float is really a number (as opposed to a special error representation). | |
| bool | ToyMaker::isNumber (const glm::vec3 &vector) |
| Tests whether a set of 3 numbers are really numbers (as opposed to special error representations). | |
| bool | ToyMaker::isNonNegative (float number) |
| Tests whether a number is non-negative. | |
| bool | ToyMaker::isNonNegative (const glm::vec3 &vector) |
| Tests whether a set of numbers is non-negative. | |
| glm::quat | ToyMaker::getRotation (const glm::vec3 &from, const glm::vec3 &to) |
| Returns the rotation between two vectors represented as a quaternion. | |
| bool | ToyMaker::isSensible (const glm::mat3 &matrix) |
| Determines whether a particular matrix is valid and finite. | |
| glm::mat4 | ToyMaker::getScaleMatrix (const glm::mat4 &fromTransform) |
| Given a transform, returns scale matrix that was used to compose the transform. | |
| glm::mat4 | ToyMaker::getRotationMatrix (const glm::mat4 &fromTransform) |
| Given a transform, returns rotation matrix that was used to compose the transform. | |
| glm::mat4 | ToyMaker::getTranslationMatrix (const glm::mat4 &fromTransform) |
| Given a transform, returns translation matrix that was used to compose the transform. | |
| glm::mat4 ToyMaker::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.
| position | The position offset to apply to a mesh. |
| orientation | The rotation applied to a mesh, expressed as a quaternion. |
| scale | The factor along each direction by which to scale a mesh. |
| glm::mat4 ToyMaker::getRotationMatrix | ( | const glm::mat4 & | fromTransform | ) |
Given a transform, returns rotation matrix that was used to compose the transform.
| glm::mat4 ToyMaker::getScaleMatrix | ( | const glm::mat4 & | fromTransform | ) |
Given a transform, returns scale matrix that was used to compose the transform.
|
inline |
Tests whether a set of 3 numbers is finite.
| vector | The numbers being tested. |
| true | The numbers are (all) finite; |
| false | One or more numbers are not finite; |
|
inline |
Tests whether a given number is finite.
| number | The number being tested. |
| true | The number is finite; |
| false | The number is not finite; |
|
inline |
Tests whether a set of numbers is non-negative.
| vector | The numbers being tested. |
| true | The numbers are (all) non-negative. |
| false | One or more of the numbers are negative. |
|
inline |
Tests whether a number is non-negative.
| number | The number being tested. |
| true | The number is non-negative; |
| false | The number is negative; |
|
inline |
Tests whether a set of 3 numbers is strictly positive.
| vector | The numbers being tested. |
| true | The numbers are (all) strictly positive; |
| false | One or more numbers are not positive; |
|
inline |
Tests whether a number is strictly positive.
| number | The number being tested. |
| true | The number is strictly positive; |
| false | The number is not positive; |