1 /* 2 * GStreamer 3 * Copyright (C) 2012 Matthew Waters <ystreet00@gmail.com> 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Library General Public 7 * License as published by the Free Software Foundation; either 8 * version 2 of the License, or (at your option) any later version. 9 * 10 * This library is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Library General Public License for more details. 14 * 15 * You should have received a copy of the GNU Library General Public 16 * License along with this library; if not, write to the 17 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 18 * Boston, MA 02110-1301, USA. 19 */ 20 /* 21 * Cogl 22 * 23 * An object oriented GL/GLES Abstraction/Utility Layer 24 * 25 * Copyright (C) 2009, 2011 Intel Corporation. 26 * 27 * This library is free software; you can redistribute it and/or 28 * modify it under the terms of the GNU Lesser General Public 29 * License as published by the Free Software Foundation; either 30 * version 2 of the License, or (at your option) any later version. 31 * 32 * This library is distributed in the hope that it will be useful, 33 * but WITHOUT ANY WARRANTY; without even the implied warranty of 34 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 35 * Lesser General Public License for more details. 36 * 37 * You should have received a copy of the GNU Lesser General Public 38 * License along with this library. If not, see <http://www.gnu.org/licenses/>. 39 */ 40 41 GST_GL_EXT_BEGIN (only_in_both_gles, 42 GST_GL_API_GLES1 | 43 GST_GL_API_GLES2, 44 255, 255, 45 1, 0, 46 "\0", 47 "\0") 48 GST_GL_EXT_FUNCTION (void, DepthRangef, 49 (GLfloat near_val, GLfloat far_val)) 50 GST_GL_EXT_FUNCTION (void, ClearDepthf, 51 (GLclampf depth)) 52 GST_GL_EXT_END () 53 54 GST_GL_EXT_BEGIN (only_in_gles1, 55 GST_GL_API_GLES1, 56 255, 255, 57 1, 0, 58 "\0", 59 "\0") 60 GST_GL_EXT_FUNCTION (void, ClipPlanef, (GLenum plane, const GLfloat *equation)) 61 GST_GL_EXT_END () 62 63 GST_GL_EXT_BEGIN (gles2_only_api, 64 GST_GL_API_GLES2, 65 255, 255, 66 2, 0, 67 "ARB:\0", 68 "ES2_compatibility\0") 69 GST_GL_EXT_FUNCTION (void, ReleaseShaderCompiler, (void)) 70 GST_GL_EXT_FUNCTION (void, GetShaderPrecisionFormat, 71 (GLenum shadertype, 72 GLenum precisiontype, 73 GLint* range, 74 GLint* precision)) 75 GST_GL_EXT_FUNCTION (void, ShaderBinary, 76 (GLsizei n, 77 const GLuint* shaders, 78 GLenum binaryformat, 79 const GLvoid* binary, 80 GLsizei length)) 81 GST_GL_EXT_END () 82 83 GST_GL_EXT_BEGIN (IMG_multisampled_render_to_texture, 84 GST_GL_API_NONE, 85 255, 255, 86 255, 255, /* not in either GLES */ 87 "\0", 88 "IMG_multisampled_render_to_texture\0") 89 GST_GL_EXT_FUNCTION (void, RenderbufferStorageMultisampleIMG, 90 (GLenum target, 91 GLsizei samples, 92 GLenum internal_format, 93 GLsizei width, 94 GLsizei height)) 95 GST_GL_EXT_FUNCTION (void, FramebufferTexture2DMultisampleIMG, 96 (GLenum target, 97 GLenum attachment, 98 GLenum textarget, 99 GLuint texture, 100 GLint level, 101 GLsizei samples)) 102 GST_GL_EXT_END () 103