DarkRadiant: master 6c178e5f

Author Committer Branch Timestamp Parent
orbweaver orbweaver master 03.05.2022 18:32 master 99cfd69c
Changeset Simplify RenderVertex constructors

Use a combination of default arguments and templates to reduce the
RenderVertex non-default constructors from 5 to 2. This in turn required
some more flexibility in the BasicVector3/4 constructors: it is now
possible to convert between vectors of different precisions much more
seamlessly.

In theory it ought to be possible to merge the remaining non-templated
RenderVertex constructor with the templated version, but all my attempts
so far resulted in incomprehensible template substitution errors.
mod - libs/math/Vector3.h Diff File
mod - libs/math/Vector4.h Diff File
mod - libs/render/RenderVertex.h Diff File
mod - test/math/Vector.cpp Diff File