# include <windows.h>
#endif
-#if !defined(WIN32)
-# include <dlfcn.h>
-#endif
-
#include <simgear/compiler.h>
+#if !defined(WIN32)
+# include SG_GLX_H
+#endif
#include SG_GL_H
#elif defined( __APPLE__ )
return (void (*)()) macosxGetGLProcAddress(func);
-#else // UNIX
-
+#else // UNIX, default
return (void (*)()) SGGetGLProcAddress(func);
#endif
}
#define GL_MAX_RECTANGLE_TEXTURE_SIZE_NV 0x84F8
#endif
+/*
+ * NV_texture_rectangle
+ */
+
+#ifndef GL_EXT_texture_rectangle
+#define GL_EXT_texture_rectangle 1
+#define GL_TEXTURE_RECTANGLE_EXT 0x84F5
+#define GL_TEXTURE_BINDING_RECTANGLE_EXT 0x84F6
+#define GL_PROXY_TEXTURE_RECTANGLE_EXT 0x84F7
+#define GL_MAX_RECTANGLE_TEXTURE_SIZE_EXT 0x84F8
+#endif
+
/*
* WGL_NV_texture_rectangle
*/
#define GL_LUMINANCE_ALPHA_FLOAT16_ATI 0x881F
#endif
+/*
+ * ARB point sprite
+ */
+#ifndef GL_ARB_point_sprite
+#define GL_ARB_point_sprite 1
+#define GL_POINT_SPRITE_ARB 0x8861
+#define GL_COORD_REPLACE_ARB 0x8862
+#endif
+
+#ifndef GL_NV_point_sprite
+#define GL_NV_point_sprite 1
+#define GL_POINT_SPRITE_NV 0x8861
+#define GL_COORD_REPLACE_NV 0x8862
+#define GL_POINT_SPRITE_R_MODE_NV 0x8863
+#endif
+
+#ifndef GL_VERSION_2_0
+#define GL_POINT_SPRITE 0x8861
+#define GL_COORD_REPLACE 0x8862
+#endif
+
/*
* ARB_vertex_program
*/
}
#endif
+
#endif // !__SG_EXTENSIONS_HXX