Value:
namespace G3D { \
namespace _internal { \
template<> class _GLFormat<G3DType> { \
public: \
static GLenum x() { \
return GLType; \
} \
}; \
} \
}
Macro to declare the underlying format (as will be returned by glFormatOf) of a type.
For example,
DECLARE_GLFORMATOF(Vector4, GL_FLOAT)
Use this so you can make vertex arrays of your own classes and not just the standard ones.