diff include/SDL_video.h @ 1926:307355678142

Added SDL_GL_ExtensionSupported() Use GL_ARB_texture_rectangle in the OpenGL renderer, if supported.
author Sam Lantinga <slouken@libsdl.org>
date Sat, 22 Jul 2006 21:58:17 +0000
parents 8a162bfdc838
children 83946ee0ff1f
line wrap: on
line diff
--- a/include/SDL_video.h	Sat Jul 22 21:17:37 2006 +0000
+++ b/include/SDL_video.h	Sat Jul 22 21:58:17 2006 +0000
@@ -1459,6 +1459,14 @@
 extern DECLSPEC void *SDLCALL SDL_GL_GetProcAddress(const char *proc);
 
 /**
+ * \fn SDL_bool SDL_GL_ExtensionSupported(const char *extension)
+ *
+ * \brief Return true if an OpenGL extension is supported for the current context.
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_GL_ExtensionSupported(const char
+                                                           *extension);
+
+/**
  * \fn int SDL_GL_SetAttribute(SDL_GLattr attr, int value)
  *
  * \brief Set an OpenGL window attribute before window creation.