|
Packit Service |
4387a0 |
/*
|
|
Packit Service |
4387a0 |
* GStreamer
|
|
Packit Service |
4387a0 |
* Copyright (C) 2012 Matthew Waters <ystreet00@gmail.com>
|
|
Packit Service |
4387a0 |
*
|
|
Packit Service |
4387a0 |
* This library is free software; you can redistribute it and/or
|
|
Packit Service |
4387a0 |
* modify it under the terms of the GNU Library General Public
|
|
Packit Service |
4387a0 |
* License as published by the Free Software Foundation; either
|
|
Packit Service |
4387a0 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit Service |
4387a0 |
*
|
|
Packit Service |
4387a0 |
* This library is distributed in the hope that it will be useful,
|
|
Packit Service |
4387a0 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
4387a0 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
4387a0 |
* Library General Public License for more details.
|
|
Packit Service |
4387a0 |
*
|
|
Packit Service |
4387a0 |
* You should have received a copy of the GNU Library General Public
|
|
Packit Service |
4387a0 |
* License along with this library; if not, write to the
|
|
Packit Service |
4387a0 |
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
Packit Service |
4387a0 |
* Boston, MA 02110-1301, USA.
|
|
Packit Service |
4387a0 |
*/
|
|
Packit Service |
4387a0 |
|
|
Packit Service |
4387a0 |
#ifndef __GST_GL_CONTEXT_WGL_H__
|
|
Packit Service |
4387a0 |
#define __GST_GL_CONTEXT_WGL_H__
|
|
Packit Service |
4387a0 |
|
|
Packit Service |
4387a0 |
#include "gstglwindow_win32.h"
|
|
Packit Service |
4387a0 |
|
|
Packit Service |
4387a0 |
G_BEGIN_DECLS
|
|
Packit Service |
4387a0 |
|
|
Packit Service |
4387a0 |
#define GST_TYPE_GL_CONTEXT_WGL (gst_gl_context_wgl_get_type())
|
|
Packit Service |
4387a0 |
#define GST_GL_CONTEXT_WGL(o) (G_TYPE_CHECK_INSTANCE_CAST((o), GST_TYPE_GL_CONTEXT_WGL, GstGLContextWGL))
|
|
Packit Service |
4387a0 |
#define GST_GL_CONTEXT_WGL_CLASS(k) (G_TYPE_CHECK_CLASS((k), GST_TYPE_GL_CONTEXT_WGL, GstGLContextWGLClass))
|
|
Packit Service |
4387a0 |
#define GST_IS_GL_CONTEXT_WGL(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), GST_TYPE_GL_CONTEXT_WGL))
|
|
Packit Service |
4387a0 |
#define GST_IS_GL_CONTEXT_WGL_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE((k), GST_TYPE_GL_CONTEXT_WGL))
|
|
Packit Service |
4387a0 |
#define GST_GL_CONTEXT_WGL_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS((o), GST_TYPE_GL_CONTEXT_WGL, GstGLContextWGLClass))
|
|
Packit Service |
4387a0 |
|
|
Packit Service |
4387a0 |
typedef struct _GstGLContextWGL GstGLContextWGL;
|
|
Packit Service |
4387a0 |
typedef struct _GstGLContextWGLClass GstGLContextWGLClass;
|
|
Packit Service |
4387a0 |
typedef struct _GstGLContextWGLPrivate GstGLContextWGLPrivate;
|
|
Packit Service |
4387a0 |
|
|
Packit Service |
4387a0 |
struct _GstGLContextWGL {
|
|
Packit Service |
4387a0 |
/*< private >*/
|
|
Packit Service |
4387a0 |
GstGLContext parent;
|
|
Packit Service |
4387a0 |
|
|
Packit Service |
4387a0 |
HGLRC wgl_context;
|
|
Packit Service |
4387a0 |
HGLRC external_gl_context;
|
|
Packit Service |
4387a0 |
|
|
Packit Service |
4387a0 |
GstGLContextWGLPrivate *priv;
|
|
Packit Service |
4387a0 |
|
|
Packit Service |
4387a0 |
gpointer _reserved[GST_PADDING];
|
|
Packit Service |
4387a0 |
};
|
|
Packit Service |
4387a0 |
|
|
Packit Service |
4387a0 |
struct _GstGLContextWGLClass {
|
|
Packit Service |
4387a0 |
/*< private >*/
|
|
Packit Service |
4387a0 |
GstGLContextClass parent_class;
|
|
Packit Service |
4387a0 |
|
|
Packit Service |
4387a0 |
/*< private >*/
|
|
Packit Service |
4387a0 |
gpointer _reserved[GST_PADDING];
|
|
Packit Service |
4387a0 |
};
|
|
Packit Service |
4387a0 |
|
|
Packit Service |
4387a0 |
GType gst_gl_context_wgl_get_type (void);
|
|
Packit Service |
4387a0 |
|
|
Packit Service |
4387a0 |
GstGLContextWGL * gst_gl_context_wgl_new (GstGLDisplay * display);
|
|
Packit Service |
4387a0 |
guintptr gst_gl_context_wgl_get_current_context (void);
|
|
Packit Service |
4387a0 |
gpointer gst_gl_context_wgl_get_proc_address (GstGLAPI gl_api, const gchar * name);
|
|
Packit Service |
4387a0 |
|
|
Packit Service |
4387a0 |
G_END_DECLS
|
|
Packit Service |
4387a0 |
|
|
Packit Service |
4387a0 |
#endif /* __GST_GL_CONTEXT_WGL_H__ */
|