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š
52971935ab
Using strongly-typed enum for plain OpenGL types.
...
Mesh and IndexedMesh is not completely ported, as it will need more
work.
14 years ago
Vladimír Vondruš
37fa078ead
Added MeshTools::AbstractIndexTool, operating only on indices.
...
Doesn't need to be templated and thus leads to smaller generated code
size.
15 years ago
Vladimír Vondruš
37afb7bffe
Splitting tools from MeshBuilderBenchmark to MeshTools.
...
Moved unit tests and benchmarks accordingly.
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š
b945f5f68b
Happy New Year.
15 years ago
Vladimír Vondruš
36213f13c4
MeshBuilder: reworked index builder.
...
Moved code which doesn't depend on index type outside this templated
function for smaller size of generated code.
15 years ago
Vladimír Vondruš
b35afc3010
MeshBuilder: Index type is based on vertex count, not index count.
15 years ago
Vladimír Vondruš
0d2035af86
Using SizeBaseCall in MeshBuilder::build().
15 years ago
Vladimír Vondruš
4904e9b58e
Functions to get vertex and face count in MeshBuilder.
15 years ago
Vladimír Vondruš
0d2f2c966f
Doc++
...
Updated and simplified Main page of documentation, finally fixed doxygen
warnings with @copydoc in Math namespace.
15 years ago
Vladimír Vondruš
0852e89fed
Fixed compiler warning.
15 years ago
Vladimír Vondruš
3c9f6681b9
Using TypeTraits in MeshBuilder.
...
Slightly reduced code size (removed repeated code), also ensuring that
the right (unsigned) type is used for indexing.
15 years ago
Vladimír Vondruš
b0eef16fa9
Non-const accessors to MeshBuilder data, allowing direct modification.
15 years ago
Vladimír Vondruš
459e6f868e
Total rewrite of slow MeshBuilder, cleanMesh() is now usably fast.
...
On 5-subdivided icosphere it performs 600 times better than previous
implementation.
15 years ago
Vladimír Vondruš
c56453cb37
Added function MeshBuilder::subdivide().
...
Argument is function or functor which does interpolation between two
adjacent vertices.
15 years ago
Vladimír Vondruš
c7b331d100
(Ahem...) Happy New Year!
15 years ago
Vladimír Vondruš
8271fbbc19
Function for getting vertex data from MeshBuilder.
16 years ago
Vladimír Vondruš
c30872a471
Class for building meshes from scratch or prefabricated data.
16 years ago