Vladimír Vondruš
03721cd95c
Bring Math::Constants<float> to Magnum namespace.
...
You can now write only
Constants::sqrt3();
instead of
Math::Constants<GLfloat>::sqrt3();
For other types you can still use the fully qualified name.
14 years ago
Vladimír Vondruš
f2a569de0e
Workarounds to make Doxygen happy.
14 years ago
Vladimír Vondruš
c1cf94fb46
Using fixed-size integer types also everywhere else.
...
It solves issues with int/long int/long long int ambiguity, which is
good.
14 years ago
Vladimír Vondruš
8f5940dd56
Using fixed-size 32bit integer type for indices.
14 years ago
Vladimír Vondruš
90a3b76e05
Have both 2D and 3D alternatives of mesh and object data in Trade.
14 years ago
Vladimír Vondruš
071afa0b7a
Point*D Vector* subclasses for homogeneous coordinates.
...
Vector4 doesn't set W component to one by default anymore, this is now
handled by Point*D itself. This finally allows creating of 2D primitives
and 2D position vectors without messing explicitly with Z = 1.
All classes which should use Point instead of Vector were updated to use
Point instead.
14 years ago
Vladimír Vondruš
fe62f547de
Reduced #includes in headers.
...
Magnum.h now doesn't include anything except OpenGL headers, thus
changes in Math library don't trigger recompilation of everything, but
only of things really depending on it.
Math constants moved to separate file for similar reasons, de-inlined
some functions to remove the need for some #includes.
14 years ago
Vladimír Vondruš
7fbf28f4a1
Added Cylinder primitive.
14 years ago
Vladimír Vondruš
e17835e3b6
Primitives: Ability to specify number of cylinder rings on Capsule.
14 years ago
Vladimír Vondruš
30032a5971
Don't confuse vertices and vertex positions.
...
Mesh consists of vertices, each vertex has position, texture coordinate,
color, normal, etc.
14 years ago
Vladimír Vondruš
7f55f30ced
CORRADE_ASSERT() now needs semicolon after.
14 years ago
Vladimír Vondruš
28b28d66f1
AbstractImporter: Added functions for matching IDs and names.
...
Also added getters for names in all *Data classes.
14 years ago
Vladimír Vondruš
7f6f81afc7
Math::Constants are now inline functions instead of static variables.
...
Static variables were compiled into the library and then linked on
every use, which was not good for performance.
14 years ago
Vladimír Vondruš
f0d88fbf9f
Added templated Math::Constants structure to replace PI #define.
...
And added sqrt(2) and sqrt(3) constants while we are at it.
14 years ago
Vladimír Vondruš
64665872cc
Use CORRADE_ASSERT() instead of cassert and direct error output.
...
Unlike previous solution this can be compiled without any impact on
performance at all.
14 years ago
Vladimír Vondruš
49c6bea722
Capsule and UVSphere primitive, with normals and texture coordinates.
14 years ago