]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/extension.h
Make backend idenfication more generic
[libs/gl.git] / source / core / extension.h
index cf824e24b0a189b65fc88de30adc6dc862fb5e09..779963578899bbeb2dea2e6de24e08d1a8b549bd 100644 (file)
@@ -2,16 +2,11 @@
 #define MSP_GL_EXTENSION_H_
 
 #include <string>
+#include "backend.h"
 
 namespace Msp {
 namespace GL {
 
-enum GLApi
-{
-       OPENGL,
-       OPENGL_ES2
-};
-
 enum GLProfile
 {
        CORE_PROFILE,
@@ -19,21 +14,6 @@ enum GLProfile
 };
 
 
-struct Version
-{
-       unsigned short major;
-       unsigned short minor;
-
-       Version();
-       Version(unsigned short, unsigned short);
-       Version(const std::string &);
-
-       bool operator>=(const Version &) const;
-       bool operator<(const Version &o) const { return !(*this>=o); }
-       operator bool() const { return major || minor; }
-};
-
-
 /**
 Holds metadata about an extension.  Evaluates to true if the extension is
 supported.
@@ -83,15 +63,9 @@ the MSPGL_DISABLE_EXTENSIONS environment variable or implicitly as a workaround
 for a driver bug.  Only intended for internal use. */
 bool is_disabled(const std::string &);
 
-/** Returns the API for which the library was compiled. */
-GLApi get_gl_api();
-
 /** Returns the OpenGL profile for the active context. */
 GLProfile get_gl_profile();
 
-/** Returns the OpenGL version number, as reported by the implementation. */
-const Version &get_gl_version();
-
 /** Returns the GLSL version number, as reported by the implementation. */
 const Version &get_glsl_version();