]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/datatype.h
Move all OpenGL-specific code to a separate directory
[libs/gl.git] / source / core / datatype.h
index 7188cb5a9c847b37a8f455d682ad660189e131f5..8111dd77f634b341f7c60cab6b1e4fc1533ca727 100644 (file)
@@ -3,7 +3,6 @@
 
 #include <msp/linal/matrix.h>
 #include <msp/linal/vector.h>
-#include "gl.h"
 
 namespace Msp {
 namespace GL {
@@ -133,12 +132,11 @@ 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);
-
 void require_type(DataType);
 
 } // namespace GL
 } // namespace Msp
 
+#include "datatype_backend.h"
+
 #endif