VirtualBox

source: vbox/trunk/src/VBox/GuestHost/OpenGL/packer/pack_shaders.c@ 20467

Last change on this file since 20467 was 20467, checked in by vboxsync, 15 years ago

crOpenGL: aliases for pre opengl2.0 arb extensions

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 19.0 KB
Line 
1/* $Id: pack_shaders.c 20467 2009-06-10 16:09:27Z vboxsync $ */
2
3/** @file
4 * VBox OpenGL DRI driver functions
5 */
6
7/*
8 * Copyright (C) 2009 Sun Microsystems, Inc.
9 *
10 * Sun Microsystems, Inc. confidential
11 * All rights reserved
12 */
13
14#include "packer.h"
15#include "cr_error.h"
16#include "cr_string.h"
17
18void PACK_APIENTRY crPackBindAttribLocation(GLuint program, GLuint index, const char *name)
19{
20 GET_PACKER_CONTEXT(pc);
21 unsigned char *data_ptr;
22 int cbName = crStrlen(name)+1;
23 int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(program)+sizeof(index) + cbName*sizeof(*name);
24
25 GET_BUFFERED_POINTER(pc, packet_length);
26 WRITE_DATA_AI(int, packet_length);
27 WRITE_DATA_AI(GLenum, CR_BINDATTRIBLOCATION_EXTEND_OPCODE);
28 WRITE_DATA_AI(GLuint, program);
29 WRITE_DATA_AI(GLuint, index);
30 crMemcpy(data_ptr, name, cbName*sizeof(*name));
31 WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
32}
33
34void PACK_APIENTRY crPackShaderSource(GLuint shader, GLsizei count, const char **string, const GLint *length)
35{
36 GET_PACKER_CONTEXT(pc);
37 unsigned char *data_ptr;
38 GLint *pLocalLength;
39 int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(shader)+sizeof(count)+sizeof(GLint)+count*sizeof(*pLocalLength);
40 GLsizei i;
41
42 if ((0==count) || (!string)) return;
43
44 pLocalLength = crAlloc(count*sizeof(*length));
45 if (!pLocalLength) return;
46
47 for (i=0; i<count; ++i)
48 {
49 pLocalLength[i] = (length && (length[i]>=0)) ? length[i] : crStrlen(string[i])+1;
50 packet_length += pLocalLength[i];
51 }
52
53 if (length)
54 {
55 packet_length += count*sizeof(*length);
56 }
57
58 GET_BUFFERED_POINTER(pc, packet_length);
59 WRITE_DATA_AI(int, packet_length);
60 WRITE_DATA_AI(GLenum, CR_SHADERSOURCE_EXTEND_OPCODE);
61 WRITE_DATA_AI(GLuint, shader);
62 WRITE_DATA_AI(GLsizei, count);
63 WRITE_DATA_AI(GLint, (GLint)(length ? 1:0));
64 crMemcpy(data_ptr, pLocalLength, count*sizeof(*pLocalLength));
65 data_ptr += count*sizeof(*pLocalLength);
66
67 if (length)
68 {
69 crMemcpy(data_ptr, length, count*sizeof(*length));
70 data_ptr += count*sizeof(*length);
71 }
72
73 for (i=0; i<count; ++i)
74 {
75 crMemcpy(data_ptr, string[i], pLocalLength[i]);
76 data_ptr += pLocalLength[i];
77 }
78 WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
79
80 crFree(pLocalLength);
81}
82
83void PACK_APIENTRY crPackUniform1fv(GLint location, GLsizei count, const GLfloat *value)
84{
85 GET_PACKER_CONTEXT(pc);
86 unsigned char *data_ptr;
87 int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(location)+sizeof(count) + count*sizeof(*value);
88
89 GET_BUFFERED_POINTER(pc, packet_length);
90 WRITE_DATA_AI(int, packet_length);
91 WRITE_DATA_AI(GLenum, CR_UNIFORM1FV_EXTEND_OPCODE);
92 WRITE_DATA_AI(GLint, location);
93 WRITE_DATA_AI(GLsizei, count);
94 crMemcpy(data_ptr, value, count*sizeof(*value));
95 WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
96}
97
98void PACK_APIENTRY crPackUniform1iv(GLint location, GLsizei count, const GLint *value)
99{
100 GET_PACKER_CONTEXT(pc);
101 unsigned char *data_ptr;
102 int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(location)+sizeof(count) + count*sizeof(*value);
103
104 GET_BUFFERED_POINTER(pc, packet_length);
105 WRITE_DATA_AI(int, packet_length);
106 WRITE_DATA_AI(GLenum, CR_UNIFORM1IV_EXTEND_OPCODE);
107 WRITE_DATA_AI(GLint, location);
108 WRITE_DATA_AI(GLsizei, count);
109 crMemcpy(data_ptr, value, count*sizeof(*value));
110 WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
111}
112
113void PACK_APIENTRY crPackUniform2fv(GLint location, GLsizei count, const GLfloat *value)
114{
115 GET_PACKER_CONTEXT(pc);
116 unsigned char *data_ptr;
117 int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(location)+sizeof(count) + 2*count*sizeof(*value);
118
119 GET_BUFFERED_POINTER(pc, packet_length);
120 WRITE_DATA_AI(int, packet_length);
121 WRITE_DATA_AI(GLenum, CR_UNIFORM2FV_EXTEND_OPCODE);
122 WRITE_DATA_AI(GLint, location);
123 WRITE_DATA_AI(GLsizei, count);
124 crMemcpy(data_ptr, value, 2*count*sizeof(*value));
125 WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
126}
127
128void PACK_APIENTRY crPackUniform2iv(GLint location, GLsizei count, const GLint *value)
129{
130 GET_PACKER_CONTEXT(pc);
131 unsigned char *data_ptr;
132 int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(location)+sizeof(count) + 2*count*sizeof(*value);
133
134 GET_BUFFERED_POINTER(pc, packet_length);
135 WRITE_DATA_AI(int, packet_length);
136 WRITE_DATA_AI(GLenum, CR_UNIFORM2IV_EXTEND_OPCODE);
137 WRITE_DATA_AI(GLint, location);
138 WRITE_DATA_AI(GLsizei, count);
139 crMemcpy(data_ptr, value, 2*count*sizeof(*value));
140 WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
141}
142
143void PACK_APIENTRY crPackUniform3fv(GLint location, GLsizei count, const GLfloat *value)
144{
145 GET_PACKER_CONTEXT(pc);
146 unsigned char *data_ptr;
147 int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(location)+sizeof(count) + 3*count*sizeof(*value);
148
149 GET_BUFFERED_POINTER(pc, packet_length);
150 WRITE_DATA_AI(int, packet_length);
151 WRITE_DATA_AI(GLenum, CR_UNIFORM3FV_EXTEND_OPCODE);
152 WRITE_DATA_AI(GLint, location);
153 WRITE_DATA_AI(GLsizei, count);
154 crMemcpy(data_ptr, value, 3*count*sizeof(*value));
155 WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
156}
157
158void PACK_APIENTRY crPackUniform3iv(GLint location, GLsizei count, const GLint *value)
159{
160 GET_PACKER_CONTEXT(pc);
161 unsigned char *data_ptr;
162 int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(location)+sizeof(count) + 3*count*sizeof(*value);
163
164 GET_BUFFERED_POINTER(pc, packet_length);
165 WRITE_DATA_AI(int, packet_length);
166 WRITE_DATA_AI(GLenum, CR_UNIFORM3IV_EXTEND_OPCODE);
167 WRITE_DATA_AI(GLint, location);
168 WRITE_DATA_AI(GLsizei, count);
169 crMemcpy(data_ptr, value, 3*count*sizeof(*value));
170 WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
171}
172
173void PACK_APIENTRY crPackUniform4fv(GLint location, GLsizei count, const GLfloat *value)
174{
175 GET_PACKER_CONTEXT(pc);
176 unsigned char *data_ptr;
177 int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(location)+sizeof(count) + 4*count*sizeof(*value);
178
179 GET_BUFFERED_POINTER(pc, packet_length);
180 WRITE_DATA_AI(int, packet_length);
181 WRITE_DATA_AI(GLenum, CR_UNIFORM4FV_EXTEND_OPCODE);
182 WRITE_DATA_AI(GLint, location);
183 WRITE_DATA_AI(GLsizei, count);
184 crMemcpy(data_ptr, value, 4*count*sizeof(*value));
185 WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
186}
187
188void PACK_APIENTRY crPackUniform4iv(GLint location, GLsizei count, const GLint *value)
189{
190 GET_PACKER_CONTEXT(pc);
191 unsigned char *data_ptr;
192 int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(location)+sizeof(count) + 4*count*sizeof(*value);
193
194 GET_BUFFERED_POINTER(pc, packet_length);
195 WRITE_DATA_AI(int, packet_length);
196 WRITE_DATA_AI(GLenum, CR_UNIFORM4IV_EXTEND_OPCODE);
197 WRITE_DATA_AI(GLint, location);
198 WRITE_DATA_AI(GLsizei, count);
199 crMemcpy(data_ptr, value, 4*count*sizeof(*value));
200 WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
201}
202
203void PACK_APIENTRY crPackUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
204{
205 GET_PACKER_CONTEXT(pc);
206 unsigned char *data_ptr;
207 int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(location)+sizeof(count)+sizeof(transpose) + 2*2*count*sizeof(*value);
208
209 GET_BUFFERED_POINTER(pc, packet_length);
210 WRITE_DATA_AI(int, packet_length);
211 WRITE_DATA_AI(GLenum, CR_UNIFORMMATRIX2FV_EXTEND_OPCODE);
212 WRITE_DATA_AI(GLint, location);
213 WRITE_DATA_AI(GLsizei, count);
214 WRITE_DATA_AI(GLboolean, transpose);
215 crMemcpy(data_ptr, value, 2*2*count*sizeof(*value));
216 WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
217}
218
219void PACK_APIENTRY crPackUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
220{
221 GET_PACKER_CONTEXT(pc);
222 unsigned char *data_ptr;
223 int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(location)+sizeof(count)+sizeof(transpose) + 3*3*count*sizeof(*value);
224
225 GET_BUFFERED_POINTER(pc, packet_length);
226 WRITE_DATA_AI(int, packet_length);
227 WRITE_DATA_AI(GLenum, CR_UNIFORMMATRIX3FV_EXTEND_OPCODE);
228 WRITE_DATA_AI(GLint, location);
229 WRITE_DATA_AI(GLsizei, count);
230 WRITE_DATA_AI(GLboolean, transpose);
231 crMemcpy(data_ptr, value, 3*3*count*sizeof(*value));
232 WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
233}
234
235void PACK_APIENTRY crPackUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
236{
237 GET_PACKER_CONTEXT(pc);
238 unsigned char *data_ptr;
239 int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(location)+sizeof(count)+sizeof(transpose) + 4*4*count*sizeof(*value);
240
241 GET_BUFFERED_POINTER(pc, packet_length);
242 WRITE_DATA_AI(int, packet_length);
243 WRITE_DATA_AI(GLenum, CR_UNIFORMMATRIX4FV_EXTEND_OPCODE);
244 WRITE_DATA_AI(GLint, location);
245 WRITE_DATA_AI(GLsizei, count);
246 WRITE_DATA_AI(GLboolean, transpose);
247 crMemcpy(data_ptr, value, 4*4*count*sizeof(*value));
248 WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
249}
250
251void PACK_APIENTRY crPackDrawBuffers(GLsizei n, const GLenum *bufs)
252{
253 GET_PACKER_CONTEXT(pc);
254 unsigned char *data_ptr;
255 int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(n) + n*sizeof(*bufs);
256
257 GET_BUFFERED_POINTER(pc, packet_length);
258 WRITE_DATA_AI(int, packet_length);
259 WRITE_DATA_AI(GLenum, CR_DRAWBUFFERS_EXTEND_OPCODE);
260 WRITE_DATA_AI(GLsizei, n);
261 crMemcpy(data_ptr, bufs, n*sizeof(*bufs));
262 WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
263}
264
265/*@todo next 7 functions are bit hacky,
266 * we expect packspu to pass a single structure with all output parameters via first output pointer.
267 * it'd be better to add CRMessageMultiReadback one day.
268 */
269void PACK_APIENTRY crPackGetActiveAttrib(GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLint * size, GLenum * type, char * name, int * writeback)
270{
271 GET_PACKER_CONTEXT(pc);
272 unsigned char *data_ptr;
273 (void) pc;
274 (void) size;
275 (void) type;
276 (void) name;
277 GET_BUFFERED_POINTER(pc, 36);
278 WRITE_DATA(0, GLint, 36);
279 WRITE_DATA(4, GLenum, CR_GETACTIVEATTRIB_EXTEND_OPCODE);
280 WRITE_DATA(8, GLuint, program);
281 WRITE_DATA(12, GLuint, index);
282 WRITE_DATA(16, GLsizei, bufSize);
283 WRITE_NETWORK_POINTER(20, (void *) length);
284 WRITE_NETWORK_POINTER(28, (void *) writeback);
285 WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
286}
287
288void PACK_APIENTRY crPackGetActiveUniform(GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLint * size, GLenum * type, char * name, int * writeback)
289{
290 GET_PACKER_CONTEXT(pc);
291 unsigned char *data_ptr;
292 (void) pc;
293 (void) size;
294 (void) type;
295 (void) name;
296 GET_BUFFERED_POINTER(pc, 36);
297 WRITE_DATA(0, GLint, 36);
298 WRITE_DATA(4, GLenum, CR_GETACTIVEUNIFORM_EXTEND_OPCODE);
299 WRITE_DATA(8, GLuint, program);
300 WRITE_DATA(12, GLuint, index);
301 WRITE_DATA(16, GLsizei, bufSize);
302 WRITE_NETWORK_POINTER(20, (void *) length);
303 WRITE_NETWORK_POINTER(28, (void *) writeback);
304 WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
305}
306
307void PACK_APIENTRY crPackGetAttachedShaders(GLuint program, GLsizei maxCount, GLsizei * count, GLuint * shaders, int * writeback)
308{
309 GET_PACKER_CONTEXT(pc);
310 unsigned char *data_ptr;
311 (void) pc;
312 (void) shaders;
313 GET_BUFFERED_POINTER(pc, 32);
314 WRITE_DATA(0, GLint, 32);
315 WRITE_DATA(4, GLenum, CR_GETATTACHEDSHADERS_EXTEND_OPCODE);
316 WRITE_DATA(8, GLuint, program);
317 WRITE_DATA(12, GLsizei, maxCount);
318 WRITE_NETWORK_POINTER(16, (void *) count);
319 WRITE_NETWORK_POINTER(24, (void *) writeback);
320 WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
321}
322
323void PACK_APIENTRY crPackGetAttachedObjectsARB(GLhandleARB containerObj, GLsizei maxCount, GLsizei * count, GLhandleARB * obj, int * writeback)
324{
325 GET_PACKER_CONTEXT(pc);
326 unsigned char *data_ptr;
327 (void) pc;
328 GET_BUFFERED_POINTER(pc, 32);
329 WRITE_DATA(0, GLint, 32);
330 WRITE_DATA(4, GLenum, CR_GETATTACHEDOBJECTSARB_EXTEND_OPCODE);
331 WRITE_DATA(8, GLhandleARB, containerObj);
332 WRITE_DATA(12, GLsizei, maxCount);
333 WRITE_NETWORK_POINTER(16, (void *) count);
334 WRITE_NETWORK_POINTER(24, (void *) writeback);
335 WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
336}
337
338void PACK_APIENTRY crPackGetInfoLogARB(GLhandleARB obj, GLsizei maxLength, GLsizei * length, GLcharARB * infoLog, int * writeback)
339{
340 GET_PACKER_CONTEXT(pc);
341 unsigned char *data_ptr;
342 (void) pc;
343 GET_BUFFERED_POINTER(pc, 32);
344 WRITE_DATA(0, GLint, 32);
345 WRITE_DATA(4, GLenum, CR_GETINFOLOGARB_EXTEND_OPCODE);
346 WRITE_DATA(8, GLhandleARB, obj);
347 WRITE_DATA(12, GLsizei, maxLength);
348 WRITE_NETWORK_POINTER(16, (void *) length);
349 WRITE_NETWORK_POINTER(24, (void *) writeback);
350 WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
351}
352
353void PACK_APIENTRY crPackGetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei * length, char * infoLog, int * writeback)
354{
355 GET_PACKER_CONTEXT(pc);
356 unsigned char *data_ptr;
357 (void) pc;
358 (void) infoLog;
359 GET_BUFFERED_POINTER(pc, 32);
360 WRITE_DATA(0, GLint, 32);
361 WRITE_DATA(4, GLenum, CR_GETPROGRAMINFOLOG_EXTEND_OPCODE);
362 WRITE_DATA(8, GLuint, program);
363 WRITE_DATA(12, GLsizei, bufSize);
364 WRITE_NETWORK_POINTER(16, (void *) length);
365 WRITE_NETWORK_POINTER(24, (void *) writeback);
366 WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
367}
368
369void PACK_APIENTRY crPackGetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei * length, char * infoLog, int * writeback)
370{
371 GET_PACKER_CONTEXT(pc);
372 unsigned char *data_ptr;
373 (void) pc;
374 (void) infoLog;
375 GET_BUFFERED_POINTER(pc, 32);
376 WRITE_DATA(0, GLint, 32);
377 WRITE_DATA(4, GLenum, CR_GETSHADERINFOLOG_EXTEND_OPCODE);
378 WRITE_DATA(8, GLuint, shader);
379 WRITE_DATA(12, GLsizei, bufSize);
380 WRITE_NETWORK_POINTER(16, (void *) length);
381 WRITE_NETWORK_POINTER(24, (void *) writeback);
382 WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
383}
384
385void PACK_APIENTRY crPackGetShaderSource(GLuint shader, GLsizei bufSize, GLsizei * length, char * source, int * writeback)
386{
387 GET_PACKER_CONTEXT(pc);
388 unsigned char *data_ptr;
389 (void) pc;
390 (void) source;
391 GET_BUFFERED_POINTER(pc, 32);
392 WRITE_DATA(0, GLint, 32);
393 WRITE_DATA(4, GLenum, CR_GETSHADERSOURCE_EXTEND_OPCODE);
394 WRITE_DATA(8, GLuint, shader);
395 WRITE_DATA(12, GLsizei, bufSize);
396 WRITE_NETWORK_POINTER(16, (void *) length);
397 WRITE_NETWORK_POINTER(24, (void *) writeback);
398 WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
399}
400
401void PACK_APIENTRY crPackGetAttribLocation(GLuint program, const char * name, GLint * return_value, int * writeback)
402{
403 GET_PACKER_CONTEXT(pc);
404 unsigned char *data_ptr;
405 int cbName = crStrlen(name)+1;
406 int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(program)+cbName*sizeof(*name)+16;
407
408 GET_BUFFERED_POINTER(pc, packet_length);
409 WRITE_DATA_AI(int, packet_length);
410 WRITE_DATA_AI(GLenum, CR_GETATTRIBLOCATION_EXTEND_OPCODE);
411 WRITE_DATA_AI(GLuint, program);
412 crMemcpy(data_ptr, name, cbName*sizeof(*name));
413 data_ptr += cbName*sizeof(*name);
414 WRITE_NETWORK_POINTER(0, (void *) return_value);
415 WRITE_NETWORK_POINTER(8, (void *) writeback);
416 WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
417}
418
419void PACK_APIENTRY crPackGetUniformLocation(GLuint program, const char * name, GLint * return_value, int * writeback)
420{
421 GET_PACKER_CONTEXT(pc);
422 unsigned char *data_ptr;
423 int cbName = crStrlen(name)+1;
424 int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(program)+cbName*sizeof(*name)+16;
425
426 GET_BUFFERED_POINTER(pc, packet_length);
427 WRITE_DATA_AI(int, packet_length);
428 WRITE_DATA_AI(GLenum, CR_GETUNIFORMLOCATION_EXTEND_OPCODE);
429 WRITE_DATA_AI(GLuint, program);
430 crMemcpy(data_ptr, name, cbName*sizeof(*name));
431 data_ptr += cbName*sizeof(*name);
432 WRITE_NETWORK_POINTER(0, (void *) return_value);
433 WRITE_NETWORK_POINTER(8, (void *) writeback);
434 WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
435}
436
437void PACK_APIENTRY crPackBindAttribLocationSWAP(GLuint program, GLuint index, const char *name)
438{
439 GET_PACKER_CONTEXT(pc);
440 (void)program;
441 (void)index;
442 (void)name;
443 crError ("No swap version");
444 (void) pc;
445}
446
447void PACK_APIENTRY crPackShaderSourceSWAP(GLuint shader, GLsizei count, const char **string, const GLint *length)
448{
449 GET_PACKER_CONTEXT(pc);
450 (void)shader;
451 (void)count;
452 (void)string;
453 (void)length;
454 crError ("No swap version");
455 (void) pc;
456}
457
458void PACK_APIENTRY crPackUniform1fvSWAP(GLint location, GLsizei count, const GLfloat *value)
459{
460 GET_PACKER_CONTEXT(pc);
461 (void)location;
462 (void)count;
463 (void)value;
464 crError ("No swap version");
465 (void) pc;
466}
467
468
469void PACK_APIENTRY crPackUniform1ivSWAP(GLint location, GLsizei count, const GLint *value)
470{
471 GET_PACKER_CONTEXT(pc);
472 (void)location;
473 (void)count;
474 (void)value;
475 crError ("No swap version");
476 (void) pc;
477}
478
479void PACK_APIENTRY crPackUniform2fvSWAP(GLint location, GLsizei count, const GLfloat *value)
480{
481 GET_PACKER_CONTEXT(pc);
482 (void)location;
483 (void)count;
484 (void)value;
485 crError ("No swap version");
486 (void) pc;
487}
488
489void PACK_APIENTRY crPackUniform2ivSWAP(GLint location, GLsizei count, const GLint * value)
490{
491 GET_PACKER_CONTEXT(pc);
492 (void)location;
493 (void)count;
494 (void)value;
495 crError ("No swap version");
496 (void) pc;
497}
498
499void PACK_APIENTRY crPackUniform3fvSWAP(GLint location, GLsizei count, const GLfloat *value)
500{
501 GET_PACKER_CONTEXT(pc);
502 (void)location;
503 (void)count;
504 (void)value;
505 crError ("No swap version");
506 (void) pc;
507}
508
509void PACK_APIENTRY crPackUniform3ivSWAP(GLint location, GLsizei count, const GLint *value)
510{
511 GET_PACKER_CONTEXT(pc);
512 (void)location;
513 (void)count;
514 (void)value;
515 crError ("No swap version");
516 (void) pc;
517}
518
519void PACK_APIENTRY crPackUniform4fvSWAP(GLint location, GLsizei count, const GLfloat *value)
520{
521 GET_PACKER_CONTEXT(pc);
522 (void)location;
523 (void)count;
524 (void)value;
525 crError ("No swap version");
526 (void) pc;
527}
528
529void PACK_APIENTRY crPackUniform4ivSWAP(GLint location, GLsizei count, const GLint *value)
530{
531 GET_PACKER_CONTEXT(pc);
532 (void)location;
533 (void)count;
534 (void)value;
535 crError ("No swap version");
536 (void) pc;
537}
538
539void PACK_APIENTRY crPackUniformMatrix2fvSWAP(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
540{
541 GET_PACKER_CONTEXT(pc);
542 (void)location;
543 (void)count;
544 (void)transpose;
545 (void)value;
546 crError ("No swap version");
547 (void) pc;
548}
549
550void PACK_APIENTRY crPackUniformMatrix3fvSWAP(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
551{
552 GET_PACKER_CONTEXT(pc);
553 (void)location;
554 (void)count;
555 (void)transpose;
556 (void)value;
557 crError ("No swap version");
558 (void) pc;
559}
560
561void PACK_APIENTRY crPackUniformMatrix4fvSWAP(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
562{
563 GET_PACKER_CONTEXT(pc);
564 (void)location;
565 (void)count;
566 (void)transpose;
567 (void)value;
568 crError ("No swap version");
569 (void) pc;
570}
571
572void PACK_APIENTRY crPackDrawBuffersSWAP(GLsizei n, const GLenum *bufs)
573{
574 GET_PACKER_CONTEXT(pc);
575 (void)n;
576 (void)bufs;
577 crError ("No swap version");
578 (void) pc;
579}
580
581void PACK_APIENTRY crPackGetAttribLocationSWAP(GLuint program, const char * name, GLint * return_value, int * writeback)
582{
583 GET_PACKER_CONTEXT(pc);
584 (void)program;
585 (void)name;
586 (void)return_value;
587 (void)writeback;
588 crError ("No swap version");
589 (void) pc;
590}
591
592void PACK_APIENTRY crPackGetUniformLocationSWAP(GLuint program, const char * name, GLint * return_value, int * writeback)
593{
594 GET_PACKER_CONTEXT(pc);
595 (void)program;
596 (void)name;
597 (void)return_value;
598 (void)writeback;
599 crError ("No swap version");
600 (void) pc;
601}
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette