by karoshi - ARB_shader_objects implementation
[mesa.git] / src / mesa / shader / shaderobjects.c
1 /*
2 * Mesa 3-D graphics library
3 * Version: 6.1
4 *
5 * Copyright (C) 2004 Brian Paul All Rights Reserved.
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a
8 * copy of this software and associated documentation files (the "Software"),
9 * to deal in the Software without restriction, including without limitation
10 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
11 * and/or sell copies of the Software, and to permit persons to whom the
12 * Software is furnished to do so, subject to the following conditions:
13 *
14 * The above copyright notice and this permission notice shall be included
15 * in all copies or substantial portions of the Software.
16 *
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
21 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 */
24
25
26 #include "glheader.h"
27 #include "shaderobjects.h"
28 #include "mtypes.h"
29 #include "context.h"
30 #include "macros.h"
31
32 void GLAPIENTRY
33 _mesa_DeleteObjectARB(GLhandleARB obj)
34 {
35 }
36
37 GLhandleARB GLAPIENTRY
38 _mesa_GetHandleARB(GLenum pname)
39 {
40 return 0;
41 }
42
43 void GLAPIENTRY
44 _mesa_DetachObjectARB (GLhandleARB containerObj, GLhandleARB attachedObj)
45 {
46 }
47
48 GLhandleARB GLAPIENTRY
49 _mesa_CreateShaderObjectARB (GLenum shaderType)
50 {
51 return 0;
52 }
53
54 void GLAPIENTRY
55 _mesa_ShaderSourceARB (GLhandleARB shaderObj, GLsizei count,
56 const GLcharARB **string, const GLint *length)
57 {
58 }
59
60 void GLAPIENTRY
61 _mesa_CompileShaderARB (GLhandleARB shaderObj)
62 {
63 }
64
65 GLhandleARB GLAPIENTRY
66 _mesa_CreateProgramObjectARB (void)
67 {
68 return 0;
69 }
70
71 void GLAPIENTRY
72 _mesa_AttachObjectARB (GLhandleARB containerObj, GLhandleARB obj)
73 {
74 }
75
76 void GLAPIENTRY
77 _mesa_LinkProgramARB (GLhandleARB programObj)
78 {
79 }
80
81 GLboolean
82 _mesa_use_program_object( GLcontext *ctx, struct gl_program_object *pobj )
83 {
84 return GL_FALSE;
85 }
86
87 void GLAPIENTRY
88 _mesa_UseProgramObjectARB (GLhandleARB programObj)
89 {
90 }
91
92 void GLAPIENTRY
93 _mesa_ValidateProgramARB (GLhandleARB programObj)
94 {
95 }
96
97 void GLAPIENTRY
98 _mesa_Uniform1fARB (GLint location, GLfloat v0)
99 {
100 }
101
102 void GLAPIENTRY
103 _mesa_Uniform2fARB (GLint location, GLfloat v0, GLfloat v1)
104 {
105 }
106
107 void GLAPIENTRY
108 _mesa_Uniform3fARB (GLint location, GLfloat v0, GLfloat v1, GLfloat v2)
109 {
110 }
111
112 void GLAPIENTRY
113 _mesa_Uniform4fARB (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3)
114 {
115 }
116
117 void GLAPIENTRY
118 _mesa_Uniform1iARB (GLint location, GLint v0)
119 {
120 }
121
122 void GLAPIENTRY
123 _mesa_Uniform2iARB (GLint location, GLint v0, GLint v1)
124 {
125 }
126
127 void GLAPIENTRY
128 _mesa_Uniform3iARB (GLint location, GLint v0, GLint v1, GLint v2)
129 {
130 }
131
132 void GLAPIENTRY
133 _mesa_Uniform4iARB (GLint location, GLint v0, GLint v1, GLint v2, GLint v3)
134 {
135 }
136
137 void GLAPIENTRY
138 _mesa_Uniform1fvARB (GLint location, GLsizei count, const GLfloat *value)
139 {
140 }
141
142 void GLAPIENTRY
143 _mesa_Uniform2fvARB (GLint location, GLsizei count, const GLfloat *value)
144 {
145 }
146
147 void GLAPIENTRY
148 _mesa_Uniform3fvARB (GLint location, GLsizei count, const GLfloat *value)
149 {
150 }
151
152 void GLAPIENTRY
153 _mesa_Uniform4fvARB (GLint location, GLsizei count, const GLfloat *value)
154 {
155 }
156
157 void GLAPIENTRY
158 _mesa_Uniform1ivARB (GLint location, GLsizei count, const GLint *value)
159 {
160 }
161
162 void GLAPIENTRY
163 _mesa_Uniform2ivARB (GLint location, GLsizei count, const GLint *value)
164 {
165 }
166
167 void GLAPIENTRY
168 _mesa_Uniform3ivARB (GLint location, GLsizei count, const GLint *value)
169 {
170 }
171
172 void GLAPIENTRY
173 _mesa_Uniform4ivARB (GLint location, GLsizei count, const GLint *value)
174 {
175 }
176
177 void GLAPIENTRY
178 _mesa_UniformMatrix2fvARB (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
179 {
180 }
181
182 void GLAPIENTRY
183 _mesa_UniformMatrix3fvARB (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
184 {
185 }
186
187 void GLAPIENTRY
188 _mesa_UniformMatrix4fvARB (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
189 {
190 }
191
192 void GLAPIENTRY
193 _mesa_GetObjectParameterfvARB (GLhandleARB obj, GLenum pname, GLfloat *params)
194 {
195 }
196
197 void GLAPIENTRY
198 _mesa_GetObjectParameterivARB (GLhandleARB obj, GLenum pname, GLint *params)
199 {
200 }
201
202 void GLAPIENTRY
203 _mesa_GetInfoLogARB (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *infoLog)
204 {
205 }
206
207 void GLAPIENTRY
208 _mesa_GetAttachedObjectsARB (GLhandleARB containerObj, GLsizei maxCount, GLsizei *count, GLhandleARB *obj)
209 {
210 }
211
212 GLint GLAPIENTRY
213 _mesa_GetUniformLocationARB (GLhandleARB programObj, const GLcharARB *name)
214 {
215 return -1;
216 }
217
218 void GLAPIENTRY
219 _mesa_GetActiveUniformARB (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name)
220 {
221 }
222
223 void GLAPIENTRY
224 _mesa_GetUniformfvARB (GLhandleARB programObj, GLint location, GLfloat *params)
225 {
226 }
227
228 void GLAPIENTRY
229 _mesa_GetUniformivARB (GLhandleARB programObj, GLint location, GLint *params)
230 {
231 }
232
233 void GLAPIENTRY
234 _mesa_GetShaderSourceARB (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *source)
235 {
236 }
237
238 /* GL_ARB_vertex_shader */
239
240 void GLAPIENTRY
241 _mesa_BindAttribLocationARB (GLhandleARB programObj, GLuint index, const GLcharARB *name)
242 {
243 }
244
245 void GLAPIENTRY
246 _mesa_GetActiveAttribARB (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name)
247 {
248 }
249
250 GLint GLAPIENTRY
251 _mesa_GetAttribLocationARB (GLhandleARB programObj, const GLcharARB *name)
252 {
253 return 0;
254 }
255
256 void _mesa_init_shaderobjects( GLcontext * ctx )
257 {
258 }