// Pulled out of gl_helpers to make documentation neater // Paul Smith 20/4/05 #ifndef CVD_GLES1_TYPES_H #define CVD_GLES1_TYPES_H #include #include #include #include #include namespace CVD { namespace gl { template struct data; //Scalar types template <> struct data { static const int format = GL_LUMINANCE; static const int type = GL_UNSIGNED_BYTE; }; template <> struct data { static const int format = GL_LUMINANCE; static const int type = GL_BYTE; }; template <> struct data { static const int format = GL_LUMINANCE; static const int type = GL_UNSIGNED_SHORT; }; template <> struct data { static const int format = GL_LUMINANCE; static const int type = GL_SHORT; }; template <> struct data { static const int format = GL_LUMINANCE; static const int type = GL_FLOAT; }; //Rgb<*> types template <> struct data> { static const int format = GL_RGB; static const int type = GL_UNSIGNED_BYTE; }; template <> struct data> { static const int format = GL_RGB; static const int type = GL_BYTE; }; template <> struct data> { static const int format = GL_RGB; static const int type = GL_UNSIGNED_SHORT; }; template <> struct data> { static const int format = GL_RGB; static const int type = GL_SHORT; }; template <> struct data> { static const int format = GL_RGB; static const int type = GL_FLOAT; }; //Rgba<*> types template <> struct data> { static const int format = GL_RGBA; static const int type = GL_UNSIGNED_BYTE; }; template <> struct data> { static const int format = GL_RGBA; static const int type = GL_BYTE; }; template <> struct data> { static const int format = GL_RGBA; static const int type = GL_UNSIGNED_SHORT; }; template <> struct data> { static const int format = GL_RGBA; static const int type = GL_SHORT; }; template <> struct data> { static const int format = GL_RGBA; static const int type = GL_FLOAT; }; //La<*> types template <> struct data> { static const int format = GL_LUMINANCE_ALPHA; static const int type = GL_UNSIGNED_BYTE; }; template <> struct data> { static const int format = GL_LUMINANCE_ALPHA; static const int type = GL_BYTE; }; template <> struct data> { static const int format = GL_LUMINANCE_ALPHA; static const int type = GL_UNSIGNED_SHORT; }; template <> struct data> { static const int format = GL_LUMINANCE_ALPHA; static const int type = GL_SHORT; }; template <> struct data> { static const int format = GL_LUMINANCE_ALPHA; static const int type = GL_FLOAT; }; //Rgb8 type template <> struct data { static const int format = GL_RGBA; static const int type = GL_UNSIGNED_BYTE; }; }; }; #endif