Add OSG_USE_FLOAT_QUAT build option to use single precision quaternions

This commit is contained in:
Capostrophic
2019-03-13 20:05:12 +03:00
committed by Robert Osfield
parent c548289ac1
commit 12b298130a
9 changed files with 28 additions and 5 deletions

View File

@@ -32,7 +32,11 @@ class OSG_EXPORT Quat
public:
/** Data type of vector components.*/
#ifdef OSG_USE_FLOAT_QUAT
typedef float value_type;
#else
typedef double value_type;
#endif
/** Number of vector components. */
enum { num_components = 4 };