trimesh.h:
- added ScalarType typedef to GL_TYPE structure
This commit is contained in:
parent
eedb03d390
commit
558fcd784a
wrap/gl
|
@ -37,15 +37,17 @@ namespace vcg {
|
||||||
template <typename T>
|
template <typename T>
|
||||||
class GL_TYPE
|
class GL_TYPE
|
||||||
{public:
|
{public:
|
||||||
static GLenum SCALAR() { assert(0); return 0;}
|
static GLenum SCALAR() { assert(0); return 0;}
|
||||||
};
|
};
|
||||||
template <> class GL_TYPE<float>
|
template <> class GL_TYPE<float>
|
||||||
{ public:
|
{ public:
|
||||||
static GLenum SCALAR() { return GL_FLOAT; }
|
typedef GLfloat ScalarType;
|
||||||
|
static GLenum SCALAR() { return GL_FLOAT; }
|
||||||
};
|
};
|
||||||
template <> class GL_TYPE<double>
|
template <> class GL_TYPE<double>
|
||||||
{public:
|
{public:
|
||||||
static GLenum SCALAR() { return GL_DOUBLE; }
|
typedef GLdouble ScalarType;
|
||||||
|
static GLenum SCALAR() { return GL_DOUBLE; }
|
||||||
};
|
};
|
||||||
|
|
||||||
//template <> GL_TYPE::SCALAR<double>() { return GL_DOUBLE; }
|
//template <> GL_TYPE::SCALAR<double>() { return GL_DOUBLE; }
|
||||||
|
|
Loading…
Reference in New Issue