Mercurial > sdl-ios-xcode
diff src/video/ataricommon/SDL_atarigl_c.h @ 1662:782fd950bd46 SDL-1.3
Revamp of the video system in progress - adding support for multiple displays, multiple windows, and a full video mode selection API.
WARNING: None of the video drivers have been updated for the new API yet! The API is still under design and very fluid.
The code is now run through a consistent indent format:
indent -i4 -nut -nsc -br -ce
The headers are being converted to automatically generate doxygen documentation.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 28 May 2006 13:04:16 +0000 |
parents | d910939febfa |
children | 4da1ee79c9af |
line wrap: on
line diff
--- a/src/video/ataricommon/SDL_atarigl_c.h Sun May 21 17:27:13 2006 +0000 +++ b/src/video/ataricommon/SDL_atarigl_c.h Sun May 28 13:04:16 2006 +0000 @@ -35,47 +35,54 @@ /* Hidden "this" pointer for the video functions */ #define _THIS SDL_VideoDevice *this -struct SDL_PrivateGLData { +struct SDL_PrivateGLData +{ - int gl_active; /* to stop switching drivers while we have a valid context */ - - int gl_oldmesa; /* Old OpenGL support ? */ + int gl_active; /* to stop switching drivers while we have a valid context */ - int gl_pixelsize; /* for CopyShadow functions */ + int gl_oldmesa; /* Old OpenGL support ? */ + + int gl_pixelsize; /* for CopyShadow functions */ - SDL_bool gl_upsidedown; /* Some implementations draw upside down */ + SDL_bool gl_upsidedown; /* Some implementations draw upside down */ - Uint8 *gl_shadow; /* Shadow buffer for old implementations */ + Uint8 *gl_shadow; /* Shadow buffer for old implementations */ - /* for unsupported OSMesa buffer formats */ - void (*ConvertSurface)(_THIS, SDL_Surface *surface); + /* for unsupported OSMesa buffer formats */ + void (*ConvertSurface) (_THIS, SDL_Surface * surface); - /* to convert the shadow buffer to the screen format */ - void (*CopyShadow)(_THIS, SDL_Surface *surface); + /* to convert the shadow buffer to the screen format */ + void (*CopyShadow) (_THIS, SDL_Surface * surface); #if SDL_VIDEO_OPENGL - OSMesaContext ctx; + OSMesaContext ctx; - /* OpenGL functions */ - void (*glGetIntegerv)( GLenum pname, GLint *value ); - void (*glFinish)(void); - void (*glFlush)(void); + /* OpenGL functions */ + void (*glGetIntegerv) (GLenum pname, GLint * value); + void (*glFinish) (void); + void (*glFlush) (void); - /* osmesa.ldg */ - OSMesaContext (*OSMesaCreateContextExt)( GLenum format, GLint depthBits, GLint stencilBits, GLint accumBits, OSMesaContext sharelist); - void (*OSMesaDestroyContext)( OSMesaContext ctx ); - GLboolean (*OSMesaMakeCurrent)( OSMesaContext ctx, void *buffer, GLenum type, GLsizei width, GLsizei height ); - void (*OSMesaPixelStore)( GLint pname, GLint value ); - void * (*OSMesaGetProcAddress)( const char *funcName ); + /* osmesa.ldg */ + OSMesaContext (*OSMesaCreateContextExt) (GLenum format, GLint depthBits, + GLint stencilBits, + GLint accumBits, + OSMesaContext sharelist); + void (*OSMesaDestroyContext) (OSMesaContext ctx); + GLboolean (*OSMesaMakeCurrent) (OSMesaContext ctx, void *buffer, + GLenum type, GLsizei width, + GLsizei height); + void (*OSMesaPixelStore) (GLint pname, GLint value); + void *(*OSMesaGetProcAddress) (const char *funcName); - /* mesa_gl.ldg, tiny_gl.ldg */ - void *(*OSMesaCreateLDG)( long format, long type, long width, long height ); - void (*OSMesaDestroyLDG)(void); + /* mesa_gl.ldg, tiny_gl.ldg */ + void *(*OSMesaCreateLDG) (long format, long type, long width, + long height); + void (*OSMesaDestroyLDG) (void); - /* Info needed to compare existing context with new asked one */ - int width, height; - GLenum format; - GLint depth,stencil,accum; + /* Info needed to compare existing context with new asked one */ + int width, height; + GLenum format; + GLint depth, stencil, accum; #endif }; @@ -96,14 +103,15 @@ #define gl_curheight (this->gl_data->height) /* OpenGL functions */ -extern int SDL_AtariGL_Init(_THIS, SDL_Surface *current); -extern void SDL_AtariGL_Quit(_THIS, SDL_bool unload); -extern void SDL_AtariGL_InitPointers(_THIS); +extern int SDL_AtariGL_Init (_THIS, SDL_Surface * current); +extern void SDL_AtariGL_Quit (_THIS, SDL_bool unload); +extern void SDL_AtariGL_InitPointers (_THIS); -extern int SDL_AtariGL_LoadLibrary(_THIS, const char *path); -extern void *SDL_AtariGL_GetProcAddress(_THIS, const char *proc); -extern int SDL_AtariGL_GetAttribute(_THIS, SDL_GLattr attrib, int* value); -extern int SDL_AtariGL_MakeCurrent(_THIS); -extern void SDL_AtariGL_SwapBuffers(_THIS); +extern int SDL_AtariGL_LoadLibrary (_THIS, const char *path); +extern void *SDL_AtariGL_GetProcAddress (_THIS, const char *proc); +extern int SDL_AtariGL_GetAttribute (_THIS, SDL_GLattr attrib, int *value); +extern int SDL_AtariGL_MakeCurrent (_THIS); +extern void SDL_AtariGL_SwapBuffers (_THIS); #endif /* _SDL_ATARIGL_H_ */ +/* vi: set ts=4 sw=4 expandtab: */