Vladimír Vondruš
e4f6a53185
Primitives: using new type aliases in whole Primitives namespace.
13 years ago
Vladimír Vondruš
d1a1b954dc
Primitives: using strongly-typed angles.
13 years ago
Vladimír Vondruš
0f889369f4
No `using namespace std` anywhere.
...
Also added missing std:: prefix to remaining cases of std::size_t,
std::[u]int[0-9]+_t, std::sin() etc., std::exit().
14 years ago
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š
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š
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š
e17835e3b6
Primitives: Ability to specify number of cylinder rings on Capsule.
14 years ago
Vladimír Vondruš
7f55f30ced
CORRADE_ASSERT() now needs semicolon after.
14 years ago
Vladimír Vondruš
39a313a357
Brought debug facilities from Corrade::Utility to Magnum namespace.
...
These classes are used so frequently that it is counterproductive to not
have them here.
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