* Boston, MA 02110-1301, USA.
*/
-#ifndef __GST_GL_RENDERER_H__
-#define __GST_GL_RENDERER_H__
+#ifndef __GST_GL_API_H__
+#define __GST_GL_API_H__
/* OpenGL 2.0 for Embedded Systems */
-#ifdef HAVE_GLES2
+#if HAVE_GLES2
# include <GLES2/gl2.h>
+# include <GLES2/gl2ext.h>
# if !HAVE_OPENGL
# include "gstgles2.h"
# endif
#endif
-/* OpenGL for usual systems */
+/* OpenGL for desktop systems */
#if HAVE_OPENGL
# if __APPLE__
# include <GL/glew.h>
# define UNICODE
#endif
+#if HAVE_WGL
+# undef UNICODE
+# include <windows.h>
+# define UNICODE
+#endif
+
#include <gst/gst.h>
G_BEGIN_DECLS
typedef enum
{
GST_GL_PLATFORM_UNKNOWN = 0,
- GST_GL_PLATFORM_EGL,
- GST_GL_PLATFORM_GLX,
- GST_GL_PLATFORM_WGL,
- GST_GL_PLATFORM_CGL,
+ GST_GL_PLATFORM_EGL = (1 << 0),
+ GST_GL_PLATFORM_GLX = (1 << 1),
+ GST_GL_PLATFORM_WGL = (1 << 2),
+ GST_GL_PLATFORM_CGL = (1 << 3),
- GST_GL_PLATFORM_ANY = 254,
- GST_GL_PLATFORM_LAST = 255
+ GST_GL_PLATFORM_ANY = G_MAXUINT32
} GstGLPlatform;
G_END_DECLS
-#endif /* __GST_GL_WINDOW_H__ */
+#endif /* __GST_GL_API_H__ */
#ifndef __GST_GL_WINDOW_WIN32_WGL_H__
#define __GST_GL_WINDOW_WIN32_WGL_H__
+#include "gstglapi.h"
#include "gstglwindow_win32.h"
-#undef UNICODE
-#include <windows.h>
-#define UNICODE
-
G_BEGIN_DECLS
#define GST_GL_TYPE_WINDOW_WIN32_WGL (gst_gl_window_win32_wgl_get_type())