comparison src/video/cocoa/SDL_cocoaopengl.h @ 1936:83946ee0ff1f

Implemented OpenGL support on Mac OS X The OpenGL renderer works without changes, yay! :)
author Sam Lantinga <slouken@libsdl.org>
date Tue, 25 Jul 2006 06:22:42 +0000
parents
children 420716272158
comparison
equal deleted inserted replaced
1935:8a9b367a80f3 1936:83946ee0ff1f
1 /*
2 SDL - Simple DirectMedia Layer
3 Copyright (C) 1997-2006 Sam Lantinga
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
19 Sam Lantinga
20 slouken@libsdl.org
21 */
22 #include "SDL_config.h"
23
24 #ifndef _SDL_cocoaopengl_h
25 #define _SDL_cocoaopengl_h
26
27 #if SDL_VIDEO_OPENGL
28
29 struct SDL_GLDriverData
30 {
31 int initialized;
32 };
33
34 /* OpenGL functions */
35 extern int Cocoa_GL_LoadLibrary(_THIS, const char *path);
36 extern void *Cocoa_GL_GetProcAddress(_THIS, const char *proc);
37 extern int Cocoa_GL_SetupWindow(_THIS, SDL_Window * window);
38 extern void Cocoa_GL_CleanupWindow(_THIS, SDL_Window * window);
39 extern SDL_GLContext Cocoa_GL_CreateContext(_THIS, SDL_Window * window);
40 extern int Cocoa_GL_MakeCurrent(_THIS, SDL_Window * window,
41 SDL_GLContext context);
42 extern int Cocoa_GL_SetSwapInterval(_THIS, int interval);
43 extern int Cocoa_GL_GetSwapInterval(_THIS);
44 extern void Cocoa_GL_SwapWindow(_THIS, SDL_Window * window);
45 extern void Cocoa_GL_DeleteContext(_THIS, SDL_GLContext context);
46
47 #endif /* SDL_VIDEO_OPENGL */
48
49 #endif /* _SDL_cocoaopengl_h */
50
51 /* vi: set ts=4 sw=4 expandtab: */