]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/datatype.h
Completely hide OpenGL from the public headers
[libs/gl.git] / source / core / datatype.h
index 7188cb5a9c847b37a8f455d682ad660189e131f5..1620dc58933d7fe1b5f9ae130ab7bff7fa104c11 100644 (file)
@@ -3,7 +3,6 @@
 
 #include <msp/linal/matrix.h>
 #include <msp/linal/vector.h>
-#include "gl.h"
 
 namespace Msp {
 namespace GL {
@@ -133,8 +132,8 @@ struct TypeTraits<LinAl::Matrix<T, N, M>>
        static const DataType type = static_cast<DataType>((TypeTraits<T>::type&0xF00) | ((TypeTraits<T>::type&0xFF)*N*M) | ((N-1)<<12) | ((M-1)<<14));
 };
 
-GLenum get_gl_type(DataType);
-DataType from_gl_type(GLenum);
+unsigned get_gl_type(DataType);
+DataType from_gl_type(unsigned);
 
 void require_type(DataType);