summaryrefslogtreecommitdiffstats
path: root/src/mesa/es/glapi/es1_COMPAT.xml
blob: 1f45a8c0b641f4cc48b3d18a25e6d81ba704eca7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?xml version="1.0"?>
<!DOCTYPE OpenGLAPI SYSTEM "../../glapi/gen/gl_API.dtd">

<OpenGLAPI>

<!-- This file defines the functions that are needed by Mesa.  It
     makes sure the generated glapi headers are compatible with Mesa.
     It mainly consists of missing functions and aliases in OpenGL ES.
-->

<xi:include href="es_COMPAT.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>

<!-- except for those defined by es_COMPAT.xml, these are also needed -->
<category name="compat">
    <!-- OpenGL 1.0 -->
    <function name="TexGenf" alias="TexGenfOES" static_dispatch="false">
        <param name="coord" type="GLenum"/>
        <param name="pname" type="GLenum"/>
        <param name="param" type="GLfloat"/>
        <glx rop="117"/>
    </function>

    <function name="TexGenfv" alias="TexGenfvOES" static_dispatch="false">
        <param name="coord" type="GLenum"/>
        <param name="pname" type="GLenum"/>
        <param name="params" type="const GLfloat *" variable_param="pname"/>
        <glx rop="118"/>
    </function>

    <function name="TexGeni" alias="TexGeniOES" static_dispatch="false">
        <param name="coord" type="GLenum"/>
        <param name="pname" type="GLenum"/>
        <param name="param" type="GLint"/>
        <glx rop="119"/>
    </function>

    <function name="TexGeniv" alias="TexGenivOES" static_dispatch="false">
        <param name="coord" type="GLenum"/>
        <param name="pname" type="GLenum"/>
        <param name="params" type="const GLint *" variable_param="pname"/>
        <glx rop="120"/>
    </function>

    <function name="GetTexGenfv" alias="GetTexGenfvOES" static_dispatch="false">
        <param name="coord" type="GLenum"/>
        <param name="pname" type="GLenum"/>
        <param name="params" type="GLfloat *" output="true" variable_param="pname"/>
        <glx sop="133"/>
    </function>

    <function name="GetTexGeniv" alias="GetTexGenivOES" static_dispatch="false">
        <param name="coord" type="GLenum"/>
        <param name="pname" type="GLenum"/>
        <param name="params" type="GLint *" output="true" variable_param="pname"/>
        <glx sop="134"/>
    </function>

    <!-- OpenGL 1.2 -->
    <function name="BlendColor" offset="336" static_dispatch="false">
        <param name="red" type="GLclampf"/>
        <param name="green" type="GLclampf"/>
        <param name="blue" type="GLclampf"/>
        <param name="alpha" type="GLclampf"/>
        <glx rop="4096"/>
    </function>

    <function name="BlendEquation" alias="BlendEquationOES" static_dispatch="false">
        <param name="mode" type="GLenum"/>
        <glx rop="4097"/>
    </function>

    <function name="TexImage3D" offset="371" static_dispatch="false">
        <param name="target" type="GLenum"/>
        <param name="level" type="GLint"/>
        <param name="internalformat" type="GLint"/>
        <param name="width" type="GLsizei"/>
        <param name="height" type="GLsizei"/>
        <param name="depth" type="GLsizei"/>
        <param name="border" type="GLint"/>
        <param name="format" type="GLenum"/>
        <param name="type" type="GLenum"/>
        <param name="pixels" type="const GLvoid *" img_width="width" img_height="height" img_depth="depth" img_format="format" img_type="type" img_target="target" img_null_flag="true" img_pad_dimensions="true"/>
        <glx rop="4114" large="true"/>
    </function>

    <function name="TexSubImage3D" offset="372" static_dispatch="false">
        <param name="target" type="GLenum"/>
        <param name="level" type="GLint"/>
        <param name="xoffset" type="GLint"/>
        <param name="yoffset" type="GLint"/>
        <param name="zoffset" type="GLint"/>
        <param name="width" type="GLsizei"/>
        <param name="height" type="GLsizei"/>
        <param name="depth" type="GLsizei"/>
        <param name="format" type="GLenum"/>
        <param name="type" type="GLenum"/>
        <param name="UNUSED" type="GLuint" padding="true"/>
        <param name="pixels" type="const GLvoid *" img_width="width" img_height="height" img_depth="depth" img_xoff="xoffset" img_yoff="yoffset" img_zoff="zoffset" img_format="format" img_type="type" img_target="target" img_pad_dimensions="true"/>
        <glx rop="4115" large="true"/>
    </function>

    <function name="CopyTexSubImage3D" offset="373" static_dispatch="false">
        <param name="target" type="GLenum"/>
        <param name="level" type="GLint"/>
        <param name="xoffset" type="GLint"/>
        <param name="yoffset" type="GLint"/>
        <param name="zoffset" type="GLint"/>
        <param name="x" type="GLint"/>
        <param name="y" type="GLint"/>
        <param name="width" type="GLsizei"/>
        <param name="height" type="GLsizei"/>
        <glx rop="4123"/>
    </function>

    <!-- GL_ARB_multitexture -->
    <function name="ActiveTextureARB" alias="ActiveTexture" static_dispatch="false">
        <param name="texture" type="GLenum"/>
        <glx rop="197"/>
    </function>

    <function name="ClientActiveTextureARB" alias="ClientActiveTexture" static_dispatch="false">
        <param name="texture" type="GLenum"/>
        <glx handcode="true"/>
    </function>

    <function name="MultiTexCoord4fARB" alias="MultiTexCoord4f" vectorequiv="MultiTexCoord4fvARB" static_dispatch="false">
        <param name="target" type="GLenum"/>
        <param name="s" type="GLfloat"/>
        <param name="t" type="GLfloat"/>
        <param name="r" type="GLfloat"/>
        <param name="q" type="GLfloat"/>
    </function>
</category>

</OpenGLAPI>