#define MSP_GL_EXTENSION_H_
#include <string>
+#include "backend.h"
namespace Msp {
namespace GL {
-enum GLApi
-{
- OPENGL,
- OPENGL_ES2
-};
-
enum GLProfile
{
CORE_PROFILE,
};
-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.
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();