Mercurial > sdl-ios-xcode
comparison src/video/maccommon/SDL_macgl_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 | 14717b52abc0 |
children | 4da1ee79c9af |
comparison
equal
deleted
inserted
replaced
1661:281d3f4870e5 | 1662:782fd950bd46 |
---|---|
25 #include "SDL_config.h" | 25 #include "SDL_config.h" |
26 | 26 |
27 #if SDL_VIDEO_OPENGL | 27 #if SDL_VIDEO_OPENGL |
28 #include "SDL_opengl.h" | 28 #include "SDL_opengl.h" |
29 #if __MACOSX__ | 29 #if __MACOSX__ |
30 #include <AGL/agl.h> /* AGL.framework */ | 30 #include <AGL/agl.h> /* AGL.framework */ |
31 #else | 31 #else |
32 #include <agl.h> | 32 #include <agl.h> |
33 #endif | 33 #endif |
34 #endif /* SDL_VIDEO_OPENGL */ | 34 #endif /* SDL_VIDEO_OPENGL */ |
35 | 35 |
36 /* OpenGL functions */ | 36 /* OpenGL functions */ |
37 extern int Mac_GL_Init(_THIS); | 37 extern int Mac_GL_Init (_THIS); |
38 extern void Mac_GL_Quit(_THIS); | 38 extern void Mac_GL_Quit (_THIS); |
39 #if SDL_VIDEO_OPENGL | 39 #if SDL_VIDEO_OPENGL |
40 extern int Mac_GL_MakeCurrent(_THIS); | 40 extern int Mac_GL_MakeCurrent (_THIS); |
41 extern int Mac_GL_GetAttribute(_THIS, SDL_GLattr attrib, int* value); | 41 extern int Mac_GL_GetAttribute (_THIS, SDL_GLattr attrib, int *value); |
42 extern void Mac_GL_SwapBuffers(_THIS); | 42 extern void Mac_GL_SwapBuffers (_THIS); |
43 extern int Mac_GL_LoadLibrary(_THIS, const char *location); | 43 extern int Mac_GL_LoadLibrary (_THIS, const char *location); |
44 extern void Mac_GL_UnloadLibrary(_THIS); | 44 extern void Mac_GL_UnloadLibrary (_THIS); |
45 extern void* Mac_GL_GetProcAddress(_THIS, const char *proc); | 45 extern void *Mac_GL_GetProcAddress (_THIS, const char *proc); |
46 #endif | 46 #endif |
47 | 47 /* vi: set ts=4 sw=4 expandtab: */ |