~oem-solutions-group/unity-2d/clutter-1.0

« back to all changes in this revision

Viewing changes to clutter/cogl/cogl/driver/gles/cogl-feature-functions.h

  • Committer: Bazaar Package Importer
  • Author(s): Emilio Pozuelo Monfort
  • Date: 2010-03-21 13:27:56 UTC
  • mto: (2.1.3 experimental)
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20100321132756-nf8yd30yxo3zzwcm
Tags: upstream-1.2.2
ImportĀ upstreamĀ versionĀ 1.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Cogl
 
3
 *
 
4
 * An object oriented GL/GLES Abstraction/Utility Layer
 
5
 *
 
6
 * Copyright (C) 2009 Intel Corporation.
 
7
 *
 
8
 * This library is free software; you can redistribute it and/or
 
9
 * modify it under the terms of the GNU Lesser General Public
 
10
 * License as published by the Free Software Foundation; either
 
11
 * version 2 of the License, or (at your option) any later version.
 
12
 *
 
13
 * This library is distributed in the hope that it will be useful,
 
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
16
 * Lesser General Public License for more details.
 
17
 *
 
18
 * You should have received a copy of the GNU Lesser General Public
 
19
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
 
20
 *
 
21
 *
 
22
 */
 
23
 
 
24
/* This is included multiple times with different definitions for
 
25
   these macros */
 
26
 
 
27
COGL_FEATURE_BEGIN (offscreen, 255, 255,
 
28
                    /* for some reason the ARB version of this
 
29
                       extension doesn't have an ARB suffix for the
 
30
                       functions */
 
31
                    "OES:\0",
 
32
                    "framebuffer_object\0",
 
33
                    COGL_FEATURE_OFFSCREEN)
 
34
COGL_FEATURE_FUNCTION (void, glGenRenderbuffers,
 
35
                       (GLsizei               n,
 
36
                        GLuint               *renderbuffers))
 
37
COGL_FEATURE_FUNCTION (void, glDeleteRenderbuffers,
 
38
                       (GLsizei               n,
 
39
                        const GLuint         *renderbuffers))
 
40
COGL_FEATURE_FUNCTION (void, glBindRenderbuffer,
 
41
                       (GLenum                target,
 
42
                        GLuint                renderbuffer))
 
43
COGL_FEATURE_FUNCTION (void, glRenderbufferStorage,
 
44
                       (GLenum                target,
 
45
                        GLenum                internalformat,
 
46
                        GLsizei               width,
 
47
                        GLsizei               height))
 
48
COGL_FEATURE_FUNCTION (void, glGenFramebuffers,
 
49
                       (GLsizei               n,
 
50
                        GLuint               *framebuffers))
 
51
COGL_FEATURE_FUNCTION (void, glBindFramebuffer,
 
52
                       (GLenum                target,
 
53
                        GLuint                framebuffer))
 
54
COGL_FEATURE_FUNCTION (void, glFramebufferTexture2D,
 
55
                       (GLenum                target,
 
56
                        GLenum                attachment,
 
57
                        GLenum                textarget,
 
58
                        GLuint                texture,
 
59
                        GLint                 level))
 
60
COGL_FEATURE_FUNCTION (void, glFramebufferRenderbuffer,
 
61
                       (GLenum                target,
 
62
                        GLenum                attachment,
 
63
                        GLenum                renderbuffertarget,
 
64
                        GLuint                renderbuffer))
 
65
COGL_FEATURE_FUNCTION (GLenum, glCheckFramebufferStatus,
 
66
                       (GLenum                target))
 
67
COGL_FEATURE_FUNCTION (void, glDeleteFramebuffers,
 
68
                       (GLsizei               n,
 
69
                        const                 GLuint *framebuffers))
 
70
COGL_FEATURE_FUNCTION (void, glGenerateMipmap,
 
71
                       (GLenum                target))
 
72
COGL_FEATURE_END ()
 
73
 
 
74
COGL_FEATURE_BEGIN (element_index_uint, 255, 255,
 
75
                    "OES\0",
 
76
                    "element_index_uint\0",
 
77
                    COGL_FEATURE_UNSIGNED_INT_INDICES)
 
78
COGL_FEATURE_END ()