slouken@2737
|
1 |
/*
|
slouken@2737
|
2 |
SDL - Simple DirectMedia Layer
|
slouken@5262
|
3 |
Copyright (C) 1997-2011 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@5199
|
21 |
|
slouken@5199
|
22 |
SDL1.3 DirectFB driver by couriersud@arcor.de
|
slouken@5199
|
23 |
|
slouken@2737
|
24 |
*/
|
slouken@5199
|
25 |
|
slouken@2737
|
26 |
|
slouken@2737
|
27 |
#ifndef _SDL_directfb_opengl_h
|
slouken@2737
|
28 |
#define _SDL_directfb_opengl_h
|
slouken@2737
|
29 |
|
slouken@5199
|
30 |
#include "SDL_DirectFB_video.h"
|
slouken@5199
|
31 |
|
slouken@2737
|
32 |
#if SDL_DIRECTFB_OPENGL
|
slouken@5199
|
33 |
|
slouken@2737
|
34 |
#include "SDL_opengl.h"
|
slouken@2737
|
35 |
|
slouken@2737
|
36 |
typedef struct _DirectFB_GLContext DirectFB_GLContext;
|
slouken@2737
|
37 |
struct _DirectFB_GLContext
|
slouken@2737
|
38 |
{
|
slouken@5199
|
39 |
IDirectFBGL *context;
|
slouken@5199
|
40 |
DirectFB_GLContext *next;
|
slouken@4636
|
41 |
|
slouken@5199
|
42 |
SDL_Window *sdl_window;
|
slouken@5199
|
43 |
int is_locked;
|
slouken@2737
|
44 |
};
|
slouken@2737
|
45 |
|
slouken@2737
|
46 |
/* OpenGL functions */
|
slouken@2737
|
47 |
extern int DirectFB_GL_Initialize(_THIS);
|
slouken@2737
|
48 |
extern void DirectFB_GL_Shutdown(_THIS);
|
slouken@2737
|
49 |
|
slouken@2737
|
50 |
extern int DirectFB_GL_LoadLibrary(_THIS, const char *path);
|
slouken@2737
|
51 |
extern void *DirectFB_GL_GetProcAddress(_THIS, const char *proc);
|
slouken@2737
|
52 |
extern SDL_GLContext DirectFB_GL_CreateContext(_THIS, SDL_Window * window);
|
slouken@2737
|
53 |
extern int DirectFB_GL_MakeCurrent(_THIS, SDL_Window * window,
|
slouken@2737
|
54 |
SDL_GLContext context);
|
slouken@2737
|
55 |
extern int DirectFB_GL_SetSwapInterval(_THIS, int interval);
|
slouken@2737
|
56 |
extern int DirectFB_GL_GetSwapInterval(_THIS);
|
slouken@2737
|
57 |
extern void DirectFB_GL_SwapWindow(_THIS, SDL_Window * window);
|
slouken@2737
|
58 |
extern void DirectFB_GL_DeleteContext(_THIS, SDL_GLContext context);
|
slouken@2737
|
59 |
|
slouken@4636
|
60 |
extern void DirectFB_GL_FreeWindowContexts(_THIS, SDL_Window * window);
|
slouken@4636
|
61 |
extern void DirectFB_GL_ReAllocWindowContexts(_THIS, SDL_Window * window);
|
slouken@4636
|
62 |
extern void DirectFB_GL_DestroyWindowContexts(_THIS, SDL_Window * window);
|
slouken@4636
|
63 |
|
slouken@2737
|
64 |
#endif /* SDL_DIRECTFB_OPENGL */
|
slouken@2737
|
65 |
|
slouken@2737
|
66 |
#endif /* _SDL_directfb_opengl_h */
|
slouken@2737
|
67 |
|
slouken@2737
|
68 |
/* vi: set ts=4 sw=4 expandtab: */
|