Blame gst-libs/gst/gl/glprototypes/blending.h

Packit 0652a1
/*
Packit 0652a1
 * GStreamer
Packit 0652a1
 * Copyright (C) 2012 Matthew Waters <ystreet00@gmail.com>
Packit 0652a1
 *
Packit 0652a1
 * This library is free software; you can redistribute it and/or
Packit 0652a1
 * modify it under the terms of the GNU Library General Public
Packit 0652a1
 * License as published by the Free Software Foundation; either
Packit 0652a1
 * version 2 of the License, or (at your option) any later version.
Packit 0652a1
 *
Packit 0652a1
 * This library is distributed in the hope that it will be useful,
Packit 0652a1
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 0652a1
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 0652a1
 * Library General Public License for more details.
Packit 0652a1
 *
Packit 0652a1
 * You should have received a copy of the GNU Library General Public
Packit 0652a1
 * License along with this library; if not, write to the
Packit 0652a1
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Packit 0652a1
 * Boston, MA 02110-1301, USA.
Packit 0652a1
 */
Packit 0652a1
/*
Packit 0652a1
 * Cogl
Packit 0652a1
 *
Packit 0652a1
 * An object oriented GL/GLES Abstraction/Utility Layer
Packit 0652a1
 *
Packit 0652a1
 * Copyright (C) 2009, 2011 Intel Corporation.
Packit 0652a1
 *
Packit 0652a1
 * This library is free software; you can redistribute it and/or
Packit 0652a1
 * modify it under the terms of the GNU Lesser General Public
Packit 0652a1
 * License as published by the Free Software Foundation; either
Packit 0652a1
 * version 2 of the License, or (at your option) any later version.
Packit 0652a1
 *
Packit 0652a1
 * This library is distributed in the hope that it will be useful,
Packit 0652a1
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 0652a1
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 0652a1
 * Lesser General Public License for more details.
Packit 0652a1
 *
Packit 0652a1
 * You should have received a copy of the GNU Lesser General Public
Packit 0652a1
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
Packit 0652a1
 */
Packit 0652a1
Packit 0652a1
GST_GL_EXT_BEGIN (blending,
Packit 0652a1
                  GST_GL_API_OPENGL | GST_GL_API_OPENGL3 |
Packit 0652a1
                  GST_GL_API_GLES2,
Packit 0652a1
                  1, 2,
Packit 0652a1
                  2, 0,
Packit 0652a1
                  "\0",
Packit 0652a1
                  "\0")
Packit 0652a1
GST_GL_EXT_FUNCTION (void, BlendEquation,
Packit 0652a1
                     (GLenum                mode))
Packit 0652a1
GST_GL_EXT_FUNCTION (void, BlendColor,
Packit 0652a1
                     (GLclampf              red,
Packit 0652a1
                      GLclampf              green,
Packit 0652a1
                      GLclampf              blue,
Packit 0652a1
                      GLclampf              alpha))
Packit 0652a1
GST_GL_EXT_END ()
Packit 0652a1
Packit 0652a1
/* Optional, declared in 1.4 or GLES 1.2 */
Packit 0652a1
GST_GL_EXT_BEGIN (blend_func_separate,
Packit 0652a1
                  GST_GL_API_OPENGL | GST_GL_API_OPENGL3 |
Packit 0652a1
                  GST_GL_API_GLES2,
Packit 0652a1
                  1, 4,
Packit 0652a1
                  2, 0,
Packit 0652a1
                  "EXT\0",
Packit 0652a1
                  "blend_func_separate\0")
Packit 0652a1
GST_GL_EXT_FUNCTION (void, BlendFuncSeparate,
Packit 0652a1
                     (GLenum                srcRGB,
Packit 0652a1
                      GLenum                dstRGB,
Packit 0652a1
                      GLenum                srcAlpha,
Packit 0652a1
                      GLenum                dstAlpha))
Packit 0652a1
GST_GL_EXT_END ()
Packit 0652a1
Packit 0652a1
/* Optional, declared in 2.0 */
Packit 0652a1
GST_GL_EXT_BEGIN (blend_equation_separate,
Packit 0652a1
                  GST_GL_API_OPENGL | GST_GL_API_OPENGL3 |
Packit 0652a1
                  GST_GL_API_GLES2,
Packit 0652a1
                  2, 0,
Packit 0652a1
                  2, 0,
Packit 0652a1
                  "EXT\0",
Packit 0652a1
                  "blend_equation_separate\0")
Packit 0652a1
GST_GL_EXT_FUNCTION (void, BlendEquationSeparate,
Packit 0652a1
                     (GLenum                modeRGB,
Packit 0652a1
                      GLenum                modeAlpha))
Packit 0652a1
GST_GL_EXT_END ()
Packit 0652a1
Packit 0652a1
/* GL and GLES 2.0 apis */
Packit 0652a1
GST_GL_EXT_BEGIN (two_point_zero_api,
Packit 0652a1
                  GST_GL_API_OPENGL | GST_GL_API_OPENGL3 |
Packit 0652a1
                  GST_GL_API_GLES2,
Packit 0652a1
                  2, 0,
Packit 0652a1
                  2, 0,
Packit 0652a1
                  "\0",
Packit 0652a1
                  "\0")
Packit 0652a1
GST_GL_EXT_FUNCTION (void, StencilFuncSeparate,
Packit 0652a1
                     (GLenum face, GLenum func, GLint ref, GLuint mask))
Packit 0652a1
GST_GL_EXT_FUNCTION (void, StencilMaskSeparate,
Packit 0652a1
                     (GLenum face, GLuint mask))
Packit 0652a1
GST_GL_EXT_FUNCTION (void, StencilOpSeparate,
Packit 0652a1
                     (GLenum face, GLenum fail, GLenum zfail, GLenum zpass))
Packit 0652a1
GST_GL_EXT_END ()