Mercurial > sdl-ios-xcode
comparison src/video/ataricommon/SDL_atarigl_c.h @ 1361:19418e4422cb
New configure-based build system. Still work in progress, but much improved
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 16 Feb 2006 10:11:48 +0000 |
parents | 2ab1cb02a44e |
children | d910939febfa |
comparison
equal
deleted
inserted
replaced
1360:70a9cfb4cf1b | 1361:19418e4422cb |
---|---|
23 /* Atari OSMesa.ldg implementation of SDL OpenGL support */ | 23 /* Atari OSMesa.ldg implementation of SDL OpenGL support */ |
24 | 24 |
25 #ifndef _SDL_ATARIGL_H_ | 25 #ifndef _SDL_ATARIGL_H_ |
26 #define _SDL_ATARIGL_H_ | 26 #define _SDL_ATARIGL_H_ |
27 | 27 |
28 #ifdef HAVE_OPENGL | 28 #if SDL_VIDEO_OPENGL |
29 #include <GL/osmesa.h> | 29 #include <GL/osmesa.h> |
30 #endif | 30 #endif |
31 | 31 |
32 #include "SDL_sysvideo.h" | 32 #include "../SDL_sysvideo.h" |
33 | |
34 /* Hidden "this" pointer for the video functions */ | |
33 #define _THIS SDL_VideoDevice *this | 35 #define _THIS SDL_VideoDevice *this |
34 | 36 |
35 struct SDL_PrivateGLData { | 37 struct SDL_PrivateGLData { |
36 | 38 |
37 int gl_active; /* to stop switching drivers while we have a valid context */ | 39 int gl_active; /* to stop switching drivers while we have a valid context */ |
48 void (*ConvertSurface)(_THIS, SDL_Surface *surface); | 50 void (*ConvertSurface)(_THIS, SDL_Surface *surface); |
49 | 51 |
50 /* to convert the shadow buffer to the screen format */ | 52 /* to convert the shadow buffer to the screen format */ |
51 void (*CopyShadow)(_THIS, SDL_Surface *surface); | 53 void (*CopyShadow)(_THIS, SDL_Surface *surface); |
52 | 54 |
53 #ifdef HAVE_OPENGL | 55 #if SDL_VIDEO_OPENGL |
54 OSMesaContext ctx; | 56 OSMesaContext ctx; |
55 | 57 |
56 /* OpenGL functions */ | 58 /* OpenGL functions */ |
57 void (*glGetIntegerv)( GLenum pname, GLint *value ); | 59 void (*glGetIntegerv)( GLenum pname, GLint *value ); |
58 void (*glFinish)(void); | 60 void (*glFinish)(void); |