3 * Copyright (C) 2009 Julien Isorce <julien.isorce@gmail.com>
4 * Copyright (C) 2009 Andrey Nechypurenko <andreynech@gmail.com>
5 * Copyright (C) 2010 Nuno Santos <nunosantos@imaginando.net>
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details.
17 * You should have received a copy of the GNU Library General Public
18 * License along with this library; if not, write to the
19 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20 * Boston, MA 02110-1301, USA.
23 #ifndef __GLCONTEXTID_H
24 #define __GLCONTEXTID_H
26 #include <gst/gl/gstglconfig.h>
28 #if defined(GST_GL_HAVE_PLATFORM_WGL)
29 #define WIN32_LEAN_AND_MEAN
33 #elif defined (GST_GL_HAVE_PLATFORM_CGL)
34 #include <OpenGL/OpenGL.h>
35 class NSOpenGLContext;
44 #if defined(GST_GL_HAVE_PLATFORM_WGL)
45 typedef struct _tagGLContextID
50 #elif defined(GST_GL_HAVE_PLATFORM_CGL)
51 typedef struct _tagGLContextID
53 NSOpenGLContext* contextId;
55 #elif defined(GST_GL_HAVE_PLATFORM_GLX)
56 typedef struct _tagGLContextID
64 #endif // __GLCONTEXTID_H