Commit Graph

14 Commits (f4bd55991f68bed06e88f1daee21917aae9cc395)

Author SHA1 Message Date
Hleb Valoshka f4bd55991f Optimize meshes with meshoptimizer library if available 2022-03-07 16:59:47 +03:00
Hleb Valoshka 746b9e3ef3 Optimize model by merging similar meshes 2022-03-07 16:59:47 +03:00
Andrew Tribick bcbd538d0a Remove const_cast in cmodview by implementing Model::setMaterial 2021-12-04 09:49:52 +01:00
Andrew Tribick 7c5c903f47 Remove pointers from mesh and model vectors
- Hold models in unique_ptr
2021-12-04 09:49:52 +01:00
Andrew Tribick 3a02e59b83 Cleanup of operators and material uniquification 2021-12-04 09:49:52 +01:00
Andrew Tribick b79959979a Extract inner types from Material and Mesh
- Remove using namspace cmod
- Convert enums to enum classes
2021-12-04 09:49:52 +01:00
Andrew Tribick 9f7262bcce Refactor Material and Material::Color comparison operators 2021-11-25 19:11:06 +01:00
Andrew Tribick 990163ac35 Clean up namespaces and includes in model.cpp/model.h 2021-11-25 19:11:06 +01:00
Andrew Tribick 79234cda24 Remove inheritance from Material maps, Model destructor
- Reference texture maps by ResourceHandles in cmod Materials
- Add basic path manager for integration tests and tools
- Remove virtual destructor on Model class as nothing inherits from it
2021-11-25 19:11:06 +01:00
Hleb Valoshka e4e1a0ddc5 Remove deprecated C++ features
std::unary_function & std::binary_function were deprecated in C++11
and removed in C++17
2019-11-30 22:45:25 +03:00
Hleb Valoshka b082d5f47f Automatically convert to c++11 using clan-tidy
+ manual cleanups
2018-09-22 23:42:02 +03:00
Chris Laurel d00fb03d6a Change ASCII cmod writing code to output null material index as -1 instead
of max unsigned int, which prevents read/write incompatibilities on 64-bit
systems. Moved some Doxygen comments from header to source file.
2010-07-05 22:53:06 +00:00
Chris Laurel f9260386b2 celmodel fixes:
- Removed unused code in #if 0/#endif blocks
- Added non-const accessor for Mesh::PrimitiveGroup
- Return more information in pick result: mesh, primitive group, and primitive
index instead of just the distance to first intersection.
2010-02-10 20:52:43 +00:00
Chris Laurel ef146f24aa Added celmodel module. 2010-02-05 20:10:32 +00:00