1 /*
2  * OpenBOR - http://www.chronocrash.com
3  * -----------------------------------------------------------------------
4  * All rights reserved, see LICENSE in OpenBOR root for details.
5  *
6  * Copyright (c) 2004 - 2014 OpenBOR Team
7  */
8 
9 #ifndef BOR_OPENGL_H
10 #define BOR_OPENGL_H
11 
12 #include "types.h"
13 #include "yuv.h"
14 #include "videocommon.h"
15 
16 #ifdef OPENGL
17 
18 // OpenGL video functions
19 int video_gl_set_mode(s_videomodes);
20 int video_gl_copy_screen(s_videosurface*);
21 void video_gl_clearscreen();
22 void video_gl_set_color_correction(int, int);
23 
24 // for WebM video playback
25 int video_gl_setup_yuv_overlay(const yuv_video_mode*);
26 int video_gl_prepare_yuv_frame(yuv_frame*);
27 int video_gl_display_yuv_frame(void);
28 
29 #else
30 
31 // define dummy macros for OpenGL video functions if OpenGL is not supported
32 #define video_gl_set_mode(X)					0
33 #define video_gl_copy_screen(X)					0
34 #define video_gl_clearscreen()
35 #define video_gl_set_color_correction(X,Y)
36 #define video_gl_setup_yuv_overlay(X)           0
37 #define video_gl_prepare_yuv_frame(X)           0
38 #define video_gl_display_yuv_frame()            0
39 
40 #endif
41 #endif
42 
43