|
Packit |
971217 |
/*
|
|
Packit |
971217 |
* GStreamer
|
|
Packit |
971217 |
* Copyright (C) 2008 Julien Isorce <julien.isorce@gmail.com>
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
971217 |
* modify it under the terms of the GNU Library General Public
|
|
Packit |
971217 |
* License as published by the Free Software Foundation; either
|
|
Packit |
971217 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
971217 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
971217 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
971217 |
* Library General Public License for more details.
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* You should have received a copy of the GNU Library General Public
|
|
Packit |
971217 |
* License along with this library; if not, write to the
|
|
Packit |
971217 |
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
Packit |
971217 |
* Boston, MA 02110-1301, USA.
|
|
Packit |
971217 |
*/
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#ifndef _GST_GL_FILTERCUBE_H_
|
|
Packit |
971217 |
#define _GST_GL_FILTERCUBE_H_
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#include <gst/gl/gstglfilter.h>
|
|
Packit |
971217 |
#include <gst/gl/gstglfuncs.h>
|
|
Packit |
971217 |
|
|
Packit |
971217 |
G_BEGIN_DECLS
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#define GST_TYPE_GL_FILTER_CUBE (gst_gl_filter_cube_get_type())
|
|
Packit |
971217 |
#define GST_GL_FILTER_CUBE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_GL_FILTER_CUBE,GstGLFilterCube))
|
|
Packit |
971217 |
#define GST_IS_GL_FILTER_CUBE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_GL_FILTER_CUBE))
|
|
Packit |
971217 |
#define GST_GL_FILTER_CUBE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass) ,GST_TYPE_GL_FILTER_CUBE,GstGLFilterCubeClass))
|
|
Packit |
971217 |
#define GST_IS_GL_FILTER_CUBE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass) ,GST_TYPE_GL_FILTER_CUBE))
|
|
Packit |
971217 |
#define GST_GL_FILTER_CUBE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj) ,GST_TYPE_GL_FILTER_CUBE,GstGLFilterCubeClass))
|
|
Packit |
971217 |
|
|
Packit |
971217 |
typedef struct _GstGLFilterCube GstGLFilterCube;
|
|
Packit |
971217 |
typedef struct _GstGLFilterCubeClass GstGLFilterCubeClass;
|
|
Packit |
971217 |
|
|
Packit |
971217 |
struct _GstGLFilterCube
|
|
Packit |
971217 |
{
|
|
Packit |
971217 |
GstGLFilter filter;
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GstGLShader *shader;
|
|
Packit |
971217 |
GstGLMemory *in_tex;
|
|
Packit |
971217 |
|
|
Packit |
971217 |
/* background color */
|
|
Packit |
971217 |
gfloat red;
|
|
Packit |
971217 |
gfloat green;
|
|
Packit |
971217 |
gfloat blue;
|
|
Packit |
971217 |
|
|
Packit |
971217 |
/* perspective */
|
|
Packit |
971217 |
gdouble fovy;
|
|
Packit |
971217 |
gdouble aspect;
|
|
Packit |
971217 |
gdouble znear;
|
|
Packit |
971217 |
gdouble zfar;
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GLuint vao;
|
|
Packit |
971217 |
GLuint vbo_indices;
|
|
Packit |
971217 |
GLuint vertex_buffer;
|
|
Packit |
971217 |
GLint attr_position;
|
|
Packit |
971217 |
GLint attr_texture;
|
|
Packit |
971217 |
};
|
|
Packit |
971217 |
|
|
Packit |
971217 |
struct _GstGLFilterCubeClass
|
|
Packit |
971217 |
{
|
|
Packit |
971217 |
GstGLFilterClass filter_class;
|
|
Packit |
971217 |
};
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GType gst_gl_filter_cube_get_type (void);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
G_END_DECLS
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#endif /* _GST_GLFILTERCUBE_H_ */
|