Added real_t, defined to float or double depending on CMake option TINYOBJLOADER_USE_DOUBLE

This commit is contained in:
noma
2017-04-24 17:25:21 +02:00
parent 9912bc5023
commit 13412b0898

View File

@@ -96,6 +96,14 @@ namespace tinyobj {
// separately
// cube_left | cube_right
#ifdef TINYOBJLOADER_USE_DOUBLE
//#pragma message "using double"
typedef double real_t;
#else
//#pragma message "using float"
typedef float real_t;
#endif
typedef enum {
TEXTURE_TYPE_NONE, // default
TEXTURE_TYPE_SPHERE,