src/video/directfb/SDL_DirectFB_opengl.h
changeset 5199 164f20ba08eb
parent 4636 b196d2758026
child 5262 b530ef003506
equal deleted inserted replaced
5198:7c3422025c35 5199:164f20ba08eb
    16     License along with this library; if not, write to the Free Software
    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
    17     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    18 
    18 
    19     Sam Lantinga
    19     Sam Lantinga
    20     slouken@libsdl.org
    20     slouken@libsdl.org
       
    21 
       
    22     SDL1.3 DirectFB driver by couriersud@arcor.de
       
    23 	
    21 */
    24 */
    22 #include "SDL_config.h"
    25 
    23 
    26 
    24 #ifndef _SDL_directfb_opengl_h
    27 #ifndef _SDL_directfb_opengl_h
    25 #define _SDL_directfb_opengl_h
    28 #define _SDL_directfb_opengl_h
    26 
    29 
       
    30 #include "SDL_DirectFB_video.h"
       
    31 
    27 #if SDL_DIRECTFB_OPENGL
    32 #if SDL_DIRECTFB_OPENGL
       
    33 
    28 #include "SDL_opengl.h"
    34 #include "SDL_opengl.h"
    29 
    35 
    30 typedef struct _DirectFB_GLContext DirectFB_GLContext;
    36 typedef struct _DirectFB_GLContext DirectFB_GLContext;
    31 struct _DirectFB_GLContext
    37 struct _DirectFB_GLContext
    32 {
    38 {
    33     IDirectFBGL *context;
    39     IDirectFBGL 		*context;
    34     DirectFB_GLContext *next;
    40     DirectFB_GLContext 	*next;
    35     
    41     
    36     SDL_Window *sdl_window;
    42     SDL_Window 			*sdl_window;
    37     int is_locked;
    43     int 				is_locked;
    38 };
    44 };
    39 
    45 
    40 /* OpenGL functions */
    46 /* OpenGL functions */
    41 extern int DirectFB_GL_Initialize(_THIS);
    47 extern int DirectFB_GL_Initialize(_THIS);
    42 extern void DirectFB_GL_Shutdown(_THIS);
    48 extern void DirectFB_GL_Shutdown(_THIS);