From 558fcd784a838c06994cdf133f4712e3d41623aa Mon Sep 17 00:00:00 2001 From: granzuglia Date: Sat, 9 Aug 2014 09:54:43 +0000 Subject: [PATCH] trimesh.h: - added ScalarType typedef to GL_TYPE structure --- wrap/gl/trimesh.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/wrap/gl/trimesh.h b/wrap/gl/trimesh.h index 68b00393..aa200f99 100644 --- a/wrap/gl/trimesh.h +++ b/wrap/gl/trimesh.h @@ -37,15 +37,17 @@ namespace vcg { template class GL_TYPE {public: - static GLenum SCALAR() { assert(0); return 0;} +static GLenum SCALAR() { assert(0); return 0;} }; template <> class GL_TYPE { public: - static GLenum SCALAR() { return GL_FLOAT; } +typedef GLfloat ScalarType; +static GLenum SCALAR() { return GL_FLOAT; } }; template <> class GL_TYPE {public: - static GLenum SCALAR() { return GL_DOUBLE; } +typedef GLdouble ScalarType; +static GLenum SCALAR() { return GL_DOUBLE; } }; //template <> GL_TYPE::SCALAR() { return GL_DOUBLE; }