Skip to content

Latest commit

 

History

History
54 lines (43 loc) · 1.59 KB

SDL_cgxgl_c.h

File metadata and controls

54 lines (43 loc) · 1.59 KB
 
Apr 26, 2001
Apr 26, 2001
1
2
/*
SDL - Simple DirectMedia Layer
Jan 4, 2004
Jan 4, 2004
3
Copyright (C) 1997-2004 Sam Lantinga
Apr 26, 2001
Apr 26, 2001
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Sam Lantinga
Dec 14, 2001
Dec 14, 2001
20
slouken@libsdl.org
Apr 26, 2001
Apr 26, 2001
21
22
23
24
25
26
27
*/
#ifdef SAVE_RCSID
static char rcsid =
"@(#) $Id$";
#endif
Dec 16, 2001
Dec 16, 2001
28
/* StormMesa implementation of SDL OpenGL support */
Apr 26, 2001
Apr 26, 2001
29
30
#include "SDL_sysvideo.h"
Dec 16, 2001
Dec 16, 2001
31
#define _THIS SDL_VideoDevice *_this
Apr 26, 2001
Apr 26, 2001
32
33
#ifdef HAVE_OPENGL
Dec 16, 2001
Dec 16, 2001
34
35
#include <GL/Amigamesa.h>
extern void *AmiGetGLProc(const char *proc);
Apr 26, 2001
Apr 26, 2001
36
37
#endif /* HAVE_OPENGL */
Dec 16, 2001
Dec 16, 2001
38
39
40
struct SDL_PrivateGLData {
int gl_active;
};
Apr 26, 2001
Apr 26, 2001
41
42
/* OpenGL functions */
Dec 16, 2001
Dec 16, 2001
43
44
45
extern int CGX_GL_Init(_THIS);
extern void CGX_GL_Quit(_THIS);
extern int CGX_GL_Update(_THIS);
Apr 26, 2001
Apr 26, 2001
46
47
48
49
#ifdef HAVE_OPENGL
extern int CGX_GL_MakeCurrent(_THIS);
extern int CGX_GL_GetAttribute(_THIS, SDL_GLattr attrib, int* value);
extern void CGX_GL_SwapBuffers(_THIS);
Dec 16, 2001
Dec 16, 2001
50
51
extern void *CGX_GL_GetProcAddress(_THIS, const char *proc);
extern int CGX_GL_LoadLibrary(_THIS, const char *path);
Apr 26, 2001
Apr 26, 2001
52
53
#endif
Dec 16, 2001
Dec 16, 2001
54
#undef _THIS