mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
[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:
parent
ab0abf649f
commit
7f3aaf504b
2 changed files with 43 additions and 0 deletions
38
gst-libs/gst/gl/glprototypes/gstgl_compat.h
Normal file
38
gst-libs/gst/gl/glprototypes/gstgl_compat.h
Normal 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
|
|
@ -40,8 +40,13 @@
|
|||
# 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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue