Vladimír Vondruš
0a965cf036
CMakeLists.txt cleanup and style unification.
...
* For libraries that are part of the same project using directly target
name instead of ${*_LIBRARY} variable.
* Prefixed test target names with namespace, so tests for the same
class in different namespaces won't conflict.
* Removed unneeded linking to ${CORRADE_UTILITY_LIBRARY} in some
places.
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š
3a96420cb4
Flipped cube primitive face winding, so the faces are oriented outside.
14 years ago
Vladimír Vondruš
ffb52f4e29
(Smooth) normals for Cube primitive.
14 years ago
Vladimír Vondruš
5cee018ec1
Added normals to Plane primitive.
14 years ago
Vladimír Vondruš
32a73395e2
Plane primitive.
14 years ago
Vladimír Vondruš
304a8445a5
Don't add null pointers for nonexistent mesh primitive data.
14 years ago
Vladimír Vondruš
49c6bea722
Capsule and UVSphere primitive, with normals and texture coordinates.
14 years ago
Vladimír Vondruš
05107f383b
Doc: some workarounds for Doxygen C++11 support etc.
14 years ago
Vladimír Vondruš
eacad4895f
Added normals array to Icosphere primitive.
14 years ago
Vladimír Vondruš
9418ff6e97
Removed unused AbstractPrimitive class.
...
Moved Primitives namespace documentation to doc/namespaces.dox.
14 years ago
Vladimír Vondruš
7dae98ded1
Primitives: using MeshData instead of AbstractPrimitive.
...
The classes now provide better access to the data. Also fixed
SubdivideCleanBenchmark from MeshTools.
14 years ago
Vladimír Vondruš
e43c1fae33
Strongly-typed Primitive enum in Mesh.
...
Also updated "default" constructor to include primitive type, as in many
cases only the primitive is specified and not the counts and types of
data.
14 years ago
Vladimír Vondruš
fb9b003e24
Buffer rework.
...
* Renamed Type enum to Target to be consistent with OpenGL naming
* Strongly typed enums
* Ability to specify different type when binding/setting data
* Added missing buffer targets
14 years ago
Vladimír Vondruš
49b126abc6
Don't try to develop our own OpenGL (naming).
14 years ago
Vladimír Vondruš
1f455e8b39
Fixed Primitives::Icosphere compilation.
...
Forgot to use new MeshTools functions for mesh cleaning.
14 years ago
Vladimír Vondruš
e0b4fca4fe
Doc++
...
Removed doc/namespaces.dox, moved namespace documentation to main files
of given namespace.
15 years ago
Vladimír Vondruš
c11e691053
Cleaning overengineered MeshBuilder.
...
* Removed VertexPointer typedef, as size_t is somewhere 64bit and
OpenGL doesn't have corresponding data type. Using unsigned int
everywhere instead, to avoid confusion.
* Removed Face structure altogether, using vertex indices directly.
* Greatly reduced size of unit tests, also thanks to C++11
std::initializer_list feature.
15 years ago
Vladimír Vondruš
2b3aab35f6
Making Icosahedron primitive data public, so it could be reused.
15 years ago
Vladimír Vondruš
b945f5f68b
Happy New Year.
15 years ago
Vladimír Vondruš
31c70f2c08
Doc++
15 years ago
Vladimír Vondruš
e9a16b1824
Added Icosphere primitive.
...
Templated on subdivision count, so it is for given subdivision computed
only once.
15 years ago
Vladimír Vondruš
6da26dc4bc
Added Cube primitive.
15 years ago
Vladimír Vondruš
8c7486a13d
Base class for primitives.
15 years ago