You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Vladimír Vondruš
da134c97a6
Primitives: fix empty Icosphere position array.
...
Positions and normals have the same data, thus the data were simply
copied to positions and then moved to normals in return to save one
needless copying. However it seems that these two operations were
swapped by the compiler (C++ standard?) and thus there were no positions
to be copied.
Now explicitly creating copy of position array and then moving them in
return. While at it, renamed also `vertices` to `positions` to be
consistent with the rest of the engine. Also added simple (count only)
unit test to avoid this error in the future.
13 years ago
..
Implementation
Primitives: wireframe versions of Capsule, Cylinder and UVSphere.
13 years ago
Test
Primitives: fix empty Icosphere position array.
13 years ago
CMakeLists.txt
Wrap CMAKE_SHARED_LIBRARY_CXX_FLAGS in quotes.
13 years ago
Capsule.cpp
Primitives: wireframe versions of Capsule, Cylinder and UVSphere.
13 years ago
Capsule.h
Primitives: wireframe versions of Capsule, Cylinder and UVSphere.
13 years ago
Circle.cpp
Trade: return references, not pointers from MeshData.
13 years ago
Circle.h
Primitives: reworked remaining classes to have the same API as the rest.
13 years ago
Crosshair.cpp
Trade: return references, not pointers from MeshData.
13 years ago
Crosshair.h
Relicensing to MIT/Expat license, part 2: headers.
13 years ago
Cube.cpp
Trade: return references, not pointers from MeshData.
13 years ago
Cube.h
Relicensing to MIT/Expat license, part 2: headers.
13 years ago
Cylinder.cpp
Primitives: wireframe versions of Capsule, Cylinder and UVSphere.
13 years ago
Cylinder.h
Primitives: wireframe versions of Capsule, Cylinder and UVSphere.
13 years ago
Icosphere.cpp
Primitives: fix empty Icosphere position array.
13 years ago
Icosphere.h
Primitives: remove template crap around Icosphere.
13 years ago
Line.cpp
Trade: return references, not pointers from MeshData.
13 years ago
Line.h
Primitives: added 2D/3D Line primitive.
13 years ago
Plane.cpp
Trade: return references, not pointers from MeshData.
13 years ago
Plane.h
Relicensing to MIT/Expat license, part 2: headers.
13 years ago
Square.cpp
Trade: return references, not pointers from MeshData.
13 years ago
Square.h
Relicensing to MIT/Expat license, part 2: headers.
13 years ago
UVSphere.cpp
Primitives: wireframe versions of Capsule, Cylinder and UVSphere.
13 years ago
UVSphere.h
Primitives: wireframe versions of Capsule, Cylinder and UVSphere.
13 years ago
magnumPrimitivesVisibility.h
Using Corrade's visibility macros instead of copypasta all over again.
13 years ago