Merge branch 'shader-file-reorg'
[mesa.git] / src / mesa / main / uniforms.h
1 /*
2 * Mesa 3-D graphics library
3 *
4 * Copyright (C) 2010 VMware, Inc. All Rights Reserved.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 * and/or sell copies of the Software, and to permit persons to whom the
11 * Software is furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included
14 * in all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
20 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */
23
24
25 #ifndef UNIFORMS_H
26 #define UNIFORMS_H
27
28
29 extern void GLAPIENTRY
30 _mesa_Uniform1fARB(GLint, GLfloat);
31
32 extern void GLAPIENTRY
33 _mesa_Uniform2fARB(GLint, GLfloat, GLfloat);
34
35 extern void GLAPIENTRY
36 _mesa_Uniform3fARB(GLint, GLfloat, GLfloat, GLfloat);
37
38 extern void GLAPIENTRY
39 _mesa_Uniform4fARB(GLint, GLfloat, GLfloat, GLfloat, GLfloat);
40
41 extern void GLAPIENTRY
42 _mesa_Uniform1iARB(GLint, GLint);
43
44 extern void GLAPIENTRY
45 _mesa_Uniform2iARB(GLint, GLint, GLint);
46
47 extern void GLAPIENTRY
48 _mesa_Uniform3iARB(GLint, GLint, GLint, GLint);
49
50 extern void GLAPIENTRY
51 _mesa_Uniform4iARB(GLint, GLint, GLint, GLint, GLint);
52
53 extern void GLAPIENTRY
54 _mesa_Uniform1fvARB(GLint, GLsizei, const GLfloat *);
55
56 extern void GLAPIENTRY
57 _mesa_Uniform2fvARB(GLint, GLsizei, const GLfloat *);
58
59 extern void GLAPIENTRY
60 _mesa_Uniform3fvARB(GLint, GLsizei, const GLfloat *);
61
62 extern void GLAPIENTRY
63 _mesa_Uniform4fvARB(GLint, GLsizei, const GLfloat *);
64
65 extern void GLAPIENTRY
66 _mesa_Uniform1ivARB(GLint, GLsizei, const GLint *);
67
68 extern void GLAPIENTRY
69 _mesa_Uniform2ivARB(GLint, GLsizei, const GLint *);
70
71 extern void GLAPIENTRY
72 _mesa_Uniform3ivARB(GLint, GLsizei, const GLint *);
73
74 extern void GLAPIENTRY
75 _mesa_Uniform4ivARB(GLint, GLsizei, const GLint *);
76
77 extern void GLAPIENTRY
78 _mesa_Uniform1ui(GLint location, GLuint v0);
79
80 extern void GLAPIENTRY
81 _mesa_Uniform2ui(GLint location, GLuint v0, GLuint v1);
82
83 extern void GLAPIENTRY
84 _mesa_Uniform3ui(GLint location, GLuint v0, GLuint v1, GLuint v2);
85
86 extern void GLAPIENTRY
87 _mesa_Uniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
88
89 extern void GLAPIENTRY
90 _mesa_Uniform1uiv(GLint location, GLsizei count, const GLuint *value);
91
92 extern void GLAPIENTRY
93 _mesa_Uniform2uiv(GLint location, GLsizei count, const GLuint *value);
94
95 extern void GLAPIENTRY
96 _mesa_Uniform3uiv(GLint location, GLsizei count, const GLuint *value);
97
98 extern void GLAPIENTRY
99 _mesa_Uniform4uiv(GLint location, GLsizei count, const GLuint *value);
100
101
102 extern void GLAPIENTRY
103 _mesa_UniformMatrix2fvARB(GLint, GLsizei, GLboolean, const GLfloat *);
104
105 extern void GLAPIENTRY
106 _mesa_UniformMatrix3fvARB(GLint, GLsizei, GLboolean, const GLfloat *);
107
108 extern void GLAPIENTRY
109 _mesa_UniformMatrix4fvARB(GLint, GLsizei, GLboolean, const GLfloat *);
110
111 extern void GLAPIENTRY
112 _mesa_UniformMatrix2x3fv(GLint location, GLsizei count, GLboolean transpose,
113 const GLfloat *value);
114
115 extern void GLAPIENTRY
116 _mesa_UniformMatrix3x2fv(GLint location, GLsizei count, GLboolean transpose,
117 const GLfloat *value);
118
119 extern void GLAPIENTRY
120 _mesa_UniformMatrix2x4fv(GLint location, GLsizei count, GLboolean transpose,
121 const GLfloat *value);
122
123 extern void GLAPIENTRY
124 _mesa_UniformMatrix4x2fv(GLint location, GLsizei count, GLboolean transpose,
125 const GLfloat *value);
126
127 extern void GLAPIENTRY
128 _mesa_UniformMatrix3x4fv(GLint location, GLsizei count, GLboolean transpose,
129 const GLfloat *value);
130
131 extern void GLAPIENTRY
132 _mesa_UniformMatrix4x3fv(GLint location, GLsizei count, GLboolean transpose,
133 const GLfloat *value);
134
135
136 extern void GLAPIENTRY
137 _mesa_GetActiveUniformARB(GLhandleARB, GLuint, GLsizei, GLsizei *,
138 GLint *, GLenum *, GLcharARB *);
139
140 extern void GLAPIENTRY
141 _mesa_GetUniformfvARB(GLhandleARB, GLint, GLfloat *);
142
143 extern void GLAPIENTRY
144 _mesa_GetUniformivARB(GLhandleARB, GLint, GLint *);
145
146 extern GLint GLAPIENTRY
147 _mesa_GetUniformLocationARB(GLhandleARB, const GLcharARB *);
148
149
150
151 extern void
152 _mesa_update_shader_textures_used(struct gl_program *prog);
153
154
155 extern void
156 _mesa_init_shader_uniform_dispatch(struct _glapi_table *exec);
157
158 #endif /* UNIFORMS_H */