mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
a0441778ad
Since the Cogl 1.18 branch is actively maintained in parallel with the
master branch; this is a counter part to commit 1b83ef938fc16b which
re-licensed the master branch to use the MIT license.
This re-licensing is a follow up to the proposal that was sent to the
Cogl mailing list:
http://lists.freedesktop.org/archives/cogl/2013-December/001465.html
Note: there was a copyright assignment policy in place for Clutter (and
therefore Cogl which was part of Clutter at the time) until the 11th of
June 2010 and so we only checked the details after that point (commit
0bbf50f905
)
For each file, authors were identified via this Git command:
$ git blame -p -C -C -C20 -M -M10 0bbf50f905..HEAD
We received blanket approvals for re-licensing all Red Hat and Collabora
contributions which reduced how many people needed to be contacted
individually:
- http://lists.freedesktop.org/archives/cogl/2013-December/001470.html
- http://lists.freedesktop.org/archives/cogl/2014-January/001536.html
Individual approval requests were sent to all the other identified authors
who all confirmed the re-license on the Cogl mailinglist:
http://lists.freedesktop.org/archives/cogl/2014-January
As well as updating the copyright header in all sources files, the
COPYING file has been updated to reflect the license change and also
document the other licenses used in Cogl such as the SGI Free Software
License B, version 2.0 and the 3-clause BSD license.
This patch was not simply cherry-picked from master; but the same
methodology was used to check the source files.
120 lines
4.8 KiB
C
120 lines
4.8 KiB
C
/*
|
|
* Cogl
|
|
*
|
|
* A Low Level GPU Graphics and Utilities API
|
|
*
|
|
* Copyright (C) 2009, 2011 Intel Corporation.
|
|
*
|
|
* Permission is hereby granted, free of charge, to any person
|
|
* obtaining a copy of this software and associated documentation
|
|
* files (the "Software"), to deal in the Software without
|
|
* restriction, including without limitation the rights to use, copy,
|
|
* modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
* of the Software, and to permit persons to whom the Software is
|
|
* furnished to do so, subject to the following conditions:
|
|
*
|
|
* The above copyright notice and this permission notice shall be
|
|
* included in all copies or substantial portions of the Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
|
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
|
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
* SOFTWARE.
|
|
*
|
|
*
|
|
*/
|
|
|
|
/* This is included multiple times with different definitions for
|
|
* these macros. The macros are given the following arguments:
|
|
*
|
|
* COGL_EXT_BEGIN:
|
|
*
|
|
* @name: a unique symbol name for this feature
|
|
*
|
|
* @min_gl_major: the major part of the minimum GL version where these
|
|
* functions are available in core, or 255 if it isn't available in
|
|
* any version.
|
|
* @min_gl_minor: the minor part of the minimum GL version where these
|
|
* functions are available in core, or 255 if it isn't available in
|
|
* any version.
|
|
*
|
|
* @gles_availability: flags to specify which versions of GLES the
|
|
* functions are available in. Should be a combination of
|
|
* COGL_EXT_IN_GLES and COGL_EXT_IN_GLES2.
|
|
*
|
|
* @extension_suffixes: A zero-separated list of suffixes in a
|
|
* string. These are appended to the extension name to get a complete
|
|
* extension name to try. The suffix is also appended to all of the
|
|
* function names. The suffix can optionally include a ':' to specify
|
|
* an alternate suffix for the function names.
|
|
*
|
|
* @extension_names: A list of extension names to try. If any of these
|
|
* extensions match then it will be used.
|
|
*/
|
|
|
|
/* These are the core GL functions which are available when the API
|
|
supports fixed-function (ie, GL and GLES1.1) */
|
|
COGL_EXT_BEGIN (fixed_function_core,
|
|
0, 0,
|
|
COGL_EXT_IN_GLES,
|
|
"\0",
|
|
"\0")
|
|
COGL_EXT_FUNCTION (void, glAlphaFunc,
|
|
(GLenum func, GLclampf ref))
|
|
COGL_EXT_FUNCTION (void, glFogf,
|
|
(GLenum pname, GLfloat param))
|
|
COGL_EXT_FUNCTION (void, glFogfv,
|
|
(GLenum pname, const GLfloat *params))
|
|
COGL_EXT_FUNCTION (void, glLoadMatrixf,
|
|
(const GLfloat *m))
|
|
COGL_EXT_FUNCTION (void, glMaterialfv,
|
|
(GLenum face, GLenum pname, const GLfloat *params))
|
|
COGL_EXT_FUNCTION (void, glPointSize,
|
|
(GLfloat size))
|
|
COGL_EXT_FUNCTION (void, glTexEnvfv,
|
|
(GLenum target, GLenum pname, const GLfloat *params))
|
|
COGL_EXT_FUNCTION (void, glColor4ub,
|
|
(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha))
|
|
COGL_EXT_FUNCTION (void, glColor4f,
|
|
(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha))
|
|
COGL_EXT_FUNCTION (void, glColorPointer,
|
|
(GLint size,
|
|
GLenum type,
|
|
GLsizei stride,
|
|
const GLvoid *pointer))
|
|
COGL_EXT_FUNCTION (void, glDisableClientState,
|
|
(GLenum array))
|
|
COGL_EXT_FUNCTION (void, glEnableClientState,
|
|
(GLenum array))
|
|
COGL_EXT_FUNCTION (void, glLoadIdentity,
|
|
(void))
|
|
COGL_EXT_FUNCTION (void, glMatrixMode,
|
|
(GLenum mode))
|
|
COGL_EXT_FUNCTION (void, glNormal3f,
|
|
(GLfloat x, GLfloat y, GLfloat z))
|
|
COGL_EXT_FUNCTION (void, glNormalPointer,
|
|
(GLenum type, GLsizei stride, const GLvoid *pointer))
|
|
COGL_EXT_FUNCTION (void, glMultiTexCoord4f,
|
|
(GLfloat s, GLfloat t, GLfloat r, GLfloat q))
|
|
COGL_EXT_FUNCTION (void, glTexCoordPointer,
|
|
(GLint size,
|
|
GLenum type,
|
|
GLsizei stride,
|
|
const GLvoid *pointer))
|
|
COGL_EXT_FUNCTION (void, glTexEnvi,
|
|
(GLenum target,
|
|
GLenum pname,
|
|
GLint param))
|
|
COGL_EXT_FUNCTION (void, glVertex4f,
|
|
(GLfloat x, GLfloat y, GLfloat z, GLfloat w))
|
|
COGL_EXT_FUNCTION (void, glVertexPointer,
|
|
(GLint size,
|
|
GLenum type,
|
|
GLsizei stride,
|
|
const GLvoid *pointer))
|
|
COGL_EXT_END ()
|