Mercurial > sdl-ios-xcode
comparison src/video/cybergfx/SDL_cgxgl_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 |
comparison
equal
deleted
inserted
replaced
1661:281d3f4870e5 | 1662:782fd950bd46 |
---|---|
27 | 27 |
28 #define _THIS SDL_VideoDevice *_this | 28 #define _THIS SDL_VideoDevice *_this |
29 | 29 |
30 #if SDL_VIDEO_OPENGL | 30 #if SDL_VIDEO_OPENGL |
31 #include <GL/Amigamesa.h> | 31 #include <GL/Amigamesa.h> |
32 extern void *AmiGetGLProc(const char *proc); | 32 extern void *AmiGetGLProc (const char *proc); |
33 #endif /* SDL_VIDEO_OPENGL */ | 33 #endif /* SDL_VIDEO_OPENGL */ |
34 | 34 |
35 struct SDL_PrivateGLData { | 35 struct SDL_PrivateGLData |
36 int gl_active; | 36 { |
37 int gl_active; | |
37 }; | 38 }; |
38 | 39 |
39 /* OpenGL functions */ | 40 /* OpenGL functions */ |
40 extern int CGX_GL_Init(_THIS); | 41 extern int CGX_GL_Init (_THIS); |
41 extern void CGX_GL_Quit(_THIS); | 42 extern void CGX_GL_Quit (_THIS); |
42 extern int CGX_GL_Update(_THIS); | 43 extern int CGX_GL_Update (_THIS); |
43 #if SDL_VIDEO_OPENGL | 44 #if SDL_VIDEO_OPENGL |
44 extern int CGX_GL_MakeCurrent(_THIS); | 45 extern int CGX_GL_MakeCurrent (_THIS); |
45 extern int CGX_GL_GetAttribute(_THIS, SDL_GLattr attrib, int* value); | 46 extern int CGX_GL_GetAttribute (_THIS, SDL_GLattr attrib, int *value); |
46 extern void CGX_GL_SwapBuffers(_THIS); | 47 extern void CGX_GL_SwapBuffers (_THIS); |
47 extern void *CGX_GL_GetProcAddress(_THIS, const char *proc); | 48 extern void *CGX_GL_GetProcAddress (_THIS, const char *proc); |
48 extern int CGX_GL_LoadLibrary(_THIS, const char *path); | 49 extern int CGX_GL_LoadLibrary (_THIS, const char *path); |
49 #endif | 50 #endif |
50 | 51 |
51 #undef _THIS | 52 #undef _THIS |
53 /* vi: set ts=4 sw=4 expandtab: */ |