aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/opengl/extensions.h
diff options
context:
space:
mode:
Diffstat (limited to 'backends/graphics/opengl/extensions.h')
-rw-r--r--backends/graphics/opengl/extensions.h23
1 files changed, 18 insertions, 5 deletions
diff --git a/backends/graphics/opengl/extensions.h b/backends/graphics/opengl/extensions.h
index 87452429e2..5b9eb538d9 100644
--- a/backends/graphics/opengl/extensions.h
+++ b/backends/graphics/opengl/extensions.h
@@ -26,15 +26,28 @@
namespace OpenGL {
/**
- * Checks for availability of extensions we want to use and initializes them
- * when available.
+ * Description structure of all available extensions.
+ *
+ * This includes information whether extensions we are interested in is
+ * available or not. If extensions we are interested in add additional
+ * functions, we keep function pointers around in here too.
*/
-void initializeGLExtensions();
+struct ExtensionsDesc {
+ /**
+ * Reset extension state.
+ *
+ * This marks all extensions as unavailable.
+ */
+ void reset();
+
+ /** Whether GL_ARB_texture_non_power_of_two is available or not. */
+ bool NPOTSupported;
+};
/**
- * Whether non power of two textures are supported
+ * Description of all available extensions.
*/
-extern bool g_extNPOTSupported;
+extern ExtensionsDesc g_extensions;
} // End of namespace OpenGL