slouken@2737
|
1 |
/*
|
slouken@2737
|
2 |
SDL - Simple DirectMedia Layer
|
slouken@2737
|
3 |
Copyright (C) 1997-2006 Sam Lantinga
|
slouken@2737
|
4 |
|
slouken@2737
|
5 |
This library is free software; you can redistribute it and/or
|
slouken@2737
|
6 |
modify it under the terms of the GNU Lesser General Public
|
slouken@2737
|
7 |
License as published by the Free Software Foundation; either
|
slouken@2737
|
8 |
version 2.1 of the License, or (at your option) any later version.
|
slouken@2737
|
9 |
|
slouken@2737
|
10 |
This library is distributed in the hope that it will be useful,
|
slouken@2737
|
11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
slouken@2737
|
12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
slouken@2737
|
13 |
Lesser General Public License for more details.
|
slouken@2737
|
14 |
|
slouken@2737
|
15 |
You should have received a copy of the GNU Lesser General Public
|
slouken@2737
|
16 |
License along with this library; if not, write to the Free Software
|
slouken@2737
|
17 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
slouken@2737
|
18 |
|
slouken@2737
|
19 |
Sam Lantinga
|
slouken@2737
|
20 |
slouken@libsdl.org
|
slouken@2737
|
21 |
*/
|
slouken@2737
|
22 |
#include "SDL_config.h"
|
slouken@2737
|
23 |
|
slouken@2737
|
24 |
#ifndef _SDL_directfb_opengl_h
|
slouken@2737
|
25 |
#define _SDL_directfb_opengl_h
|
slouken@2737
|
26 |
|
slouken@2737
|
27 |
#if SDL_DIRECTFB_OPENGL
|
slouken@2737
|
28 |
#include "SDL_opengl.h"
|
slouken@2737
|
29 |
|
slouken@2737
|
30 |
typedef struct _DirectFB_GLContext DirectFB_GLContext;
|
slouken@2737
|
31 |
struct _DirectFB_GLContext
|
slouken@2737
|
32 |
{
|
slouken@2737
|
33 |
IDirectFBGL *context;
|
slouken@2737
|
34 |
DirectFB_GLContext *next;
|
slouken@2737
|
35 |
};
|
slouken@2737
|
36 |
|
slouken@2737
|
37 |
/* OpenGL functions */
|
slouken@2737
|
38 |
extern int DirectFB_GL_Initialize(_THIS);
|
slouken@2737
|
39 |
extern void DirectFB_GL_Shutdown(_THIS);
|
slouken@2737
|
40 |
|
slouken@2737
|
41 |
extern int DirectFB_GL_LoadLibrary(_THIS, const char *path);
|
slouken@2737
|
42 |
extern void *DirectFB_GL_GetProcAddress(_THIS, const char *proc);
|
slouken@2737
|
43 |
extern SDL_GLContext DirectFB_GL_CreateContext(_THIS, SDL_Window * window);
|
slouken@2737
|
44 |
extern int DirectFB_GL_MakeCurrent(_THIS, SDL_Window * window,
|
slouken@2737
|
45 |
SDL_GLContext context);
|
slouken@2737
|
46 |
extern int DirectFB_GL_SetSwapInterval(_THIS, int interval);
|
slouken@2737
|
47 |
extern int DirectFB_GL_GetSwapInterval(_THIS);
|
slouken@2737
|
48 |
extern void DirectFB_GL_SwapWindow(_THIS, SDL_Window * window);
|
slouken@2737
|
49 |
extern void DirectFB_GL_DeleteContext(_THIS, SDL_GLContext context);
|
slouken@2737
|
50 |
|
slouken@2737
|
51 |
#endif /* SDL_DIRECTFB_OPENGL */
|
slouken@2737
|
52 |
|
slouken@2737
|
53 |
#endif /* _SDL_directfb_opengl_h */
|
slouken@2737
|
54 |
|
slouken@2737
|
55 |
/* vi: set ts=4 sw=4 expandtab: */
|