Commit 3deb725c authored by Sam Lantinga's avatar Sam Lantinga

Added platform independent OpenGL header - SDL_opengl.h

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40215
parent 0a5dc12b
...@@ -16,6 +16,7 @@ be found at the <A HREF="http://www.libsdl.org/"> main SDL page</A>. ...@@ -16,6 +16,7 @@ be found at the <A HREF="http://www.libsdl.org/"> main SDL page</A>.
Major changes since SDL 1.0.0: Major changes since SDL 1.0.0:
</H2> </H2>
<UL> <UL>
<LI> 1.2.3: Added platform independent OpenGL header - SDL_opengl.h
<LI> 1.2.3: Fixed flashing the screen when creating a window on BeOS <LI> 1.2.3: Fixed flashing the screen when creating a window on BeOS
<LI> 1.2.3: Added double-buffering support for SVGAlib (thanks Kutak!) <LI> 1.2.3: Added double-buffering support for SVGAlib (thanks Kutak!)
<LI> 1.2.3: Fixed crash when using double-buffering with DGA <LI> 1.2.3: Fixed crash when using double-buffering with DGA
......
...@@ -21,6 +21,7 @@ libSDLinclude_HEADERS = \ ...@@ -21,6 +21,7 @@ libSDLinclude_HEADERS = \
SDL_main.h \ SDL_main.h \
SDL_mouse.h \ SDL_mouse.h \
SDL_mutex.h \ SDL_mutex.h \
SDL_opengl.h \
SDL_quit.h \ SDL_quit.h \
SDL_rwops.h \ SDL_rwops.h \
SDL_syswm.h \ SDL_syswm.h \
......
This diff is collapsed.
...@@ -2,7 +2,7 @@ dnl Process this file with autoconf to produce a configure script. ...@@ -2,7 +2,7 @@ dnl Process this file with autoconf to produce a configure script.
AC_INIT(README) AC_INIT(README)
dnl Setup for automake dnl Setup for automake
SDL_VERSION=1.2.0 SDL_VERSION=1.2.3
dnl Detect the canonical host and target build environment dnl Detect the canonical host and target build environment
AC_CANONICAL_HOST AC_CANONICAL_HOST
......
...@@ -6,13 +6,7 @@ ...@@ -6,13 +6,7 @@
#include "SDL.h" #include "SDL.h"
#ifdef HAVE_OPENGL #ifdef HAVE_OPENGL
#ifdef WIN32 #include "SDL_opengl.h"
#include <windows.h>
#endif
#if defined(__APPLE__) && defined(__MACH__)
#include <OpenGL/gl.h>
#else
#include <GL/gl.h>
#endif #endif
#define SHADED_CUBE #define SHADED_CUBE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment