[671/906] win32: #include GL/glext.h on windows

also add some GL default variables if some GL types are not defined
This commit is contained in:
Matthew Waters 2013-03-09 21:59:02 +11:00
parent ab0abf649f
commit 7f3aaf504b
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,38 @@
/*
* GStreamer
* Copyright (C) 2012 Matthew Waters <ystreet00@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef __GST_GL_COMPAT_H__
#define __GST_GL_COMPAT_H__
/* undefined typedefs */
#ifndef GLeglImageOES
typedef gpointer GLeglImageOES;
#endif
#ifndef GLchar
typedef gchar GLchar;
#endif
#ifndef GLsizeiptr
typedef ptrdiff_t GLsizeiptr;
#endif
#ifndef GLintptr
typedef ptrdiff_t GLintptr;
#endif
#endif

View file

@ -40,9 +40,14 @@
# else
# include <GL/glu.h>
# include <GL/gl.h>
# if __WIN32__
# include <GL/glext.h>
# endif
# endif
#endif
#include "glprototypes/gstgl_compat.h"
#include <gst/gst.h>
G_BEGIN_DECLS