blob: 8f59649f16a234b264096636057fb0da5a87acbd [file] [log] [blame]
Geoff Lang2aaa7b42018-01-12 17:17:27 -05001//
2// Copyright (c) 2018 The ANGLE Project Authors. All rights reserved.
3// Use of this source code is governed by a BSD-style license that can be
4// found in the LICENSE file.
5//
6
7// validationES1.cpp: Validation functions for OpenGL ES 1.0 entry point parameters
8
9#include "libANGLE/validationES1.h"
10
11#include "common/debug.h"
12
13namespace gl
14{
15
16bool ValidateAlphaFunc(Context *context, GLenum func, GLfloat ref)
17{
18 UNIMPLEMENTED();
19 return true;
20}
21
22bool ValidateAlphaFuncx(Context *context, GLenum func, GLfixed ref)
23{
24 UNIMPLEMENTED();
25 return true;
26}
27
28bool ValidateClearColorx(Context *context, GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha)
29{
30 UNIMPLEMENTED();
31 return true;
32}
33
34bool ValidateClearDepthx(Context *context, GLfixed depth)
35{
36 UNIMPLEMENTED();
37 return true;
38}
39
40bool ValidateClientActiveTexture(Context *context, GLenum texture)
41{
42 UNIMPLEMENTED();
43 return true;
44}
45
46bool ValidateClipPlanef(Context *context, GLenum p, const GLfloat *eqn)
47{
48 UNIMPLEMENTED();
49 return true;
50}
51
52bool ValidateClipPlanex(Context *context, GLenum plane, const GLfixed *equation)
53{
54 UNIMPLEMENTED();
55 return true;
56}
57
58bool ValidateColor4f(Context *context, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
59{
60 UNIMPLEMENTED();
61 return true;
62}
63
64bool ValidateColor4ub(Context *context, GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
65{
66 UNIMPLEMENTED();
67 return true;
68}
69
70bool ValidateColor4x(Context *context, GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha)
71{
72 UNIMPLEMENTED();
73 return true;
74}
75
76bool ValidateColorPointer(Context *context,
77 GLint size,
78 GLenum type,
79 GLsizei stride,
80 const void *pointer)
81{
82 UNIMPLEMENTED();
83 return true;
84}
85
86bool ValidateCullFace(Context *context, GLenum mode)
87{
88 UNIMPLEMENTED();
89 return true;
90}
91
92bool ValidateDepthRangex(Context *context, GLfixed n, GLfixed f)
93{
94 UNIMPLEMENTED();
95 return true;
96}
97
98bool ValidateDisableClientState(Context *context, GLenum array)
99{
100 UNIMPLEMENTED();
101 return true;
102}
103
104bool ValidateEnableClientState(Context *context, GLenum array)
105{
106 UNIMPLEMENTED();
107 return true;
108}
109
110bool ValidateFogf(Context *context, GLenum pname, GLfloat param)
111{
112 UNIMPLEMENTED();
113 return true;
114}
115
116bool ValidateFogfv(Context *context, GLenum pname, const GLfloat *params)
117{
118 UNIMPLEMENTED();
119 return true;
120}
121
122bool ValidateFogx(Context *context, GLenum pname, GLfixed param)
123{
124 UNIMPLEMENTED();
125 return true;
126}
127
128bool ValidateFogxv(Context *context, GLenum pname, const GLfixed *param)
129{
130 UNIMPLEMENTED();
131 return true;
132}
133
134bool ValidateFrustumf(Context *context,
135 GLfloat l,
136 GLfloat r,
137 GLfloat b,
138 GLfloat t,
139 GLfloat n,
140 GLfloat f)
141{
142 UNIMPLEMENTED();
143 return true;
144}
145
146bool ValidateFrustumx(Context *context,
147 GLfixed l,
148 GLfixed r,
149 GLfixed b,
150 GLfixed t,
151 GLfixed n,
152 GLfixed f)
153{
154 UNIMPLEMENTED();
155 return true;
156}
157
158bool ValidateGetBufferParameteriv(Context *context, GLenum target, GLenum pname, GLint *params)
159{
160 UNIMPLEMENTED();
161 return true;
162}
163
164bool ValidateGetClipPlanef(Context *context, GLenum plane, GLfloat *equation)
165{
166 UNIMPLEMENTED();
167 return true;
168}
169
170bool ValidateGetClipPlanex(Context *context, GLenum plane, GLfixed *equation)
171{
172 UNIMPLEMENTED();
173 return true;
174}
175
176bool ValidateGetFixedv(Context *context, GLenum pname, GLfixed *params)
177{
178 UNIMPLEMENTED();
179 return true;
180}
181
182bool ValidateGetLightfv(Context *context, GLenum light, GLenum pname, GLfloat *params)
183{
184 UNIMPLEMENTED();
185 return true;
186}
187
188bool ValidateGetLightxv(Context *context, GLenum light, GLenum pname, GLfixed *params)
189{
190 UNIMPLEMENTED();
191 return true;
192}
193
194bool ValidateGetMaterialfv(Context *context, GLenum face, GLenum pname, GLfloat *params)
195{
196 UNIMPLEMENTED();
197 return true;
198}
199
200bool ValidateGetMaterialxv(Context *context, GLenum face, GLenum pname, GLfixed *params)
201{
202 UNIMPLEMENTED();
203 return true;
204}
205
206bool ValidateGetPointerv(Context *context, GLenum pname, void **params)
207{
208 UNIMPLEMENTED();
209 return true;
210}
211
212bool ValidateGetTexEnvfv(Context *context, GLenum target, GLenum pname, GLfloat *params)
213{
214 UNIMPLEMENTED();
215 return true;
216}
217
218bool ValidateGetTexEnviv(Context *context, GLenum target, GLenum pname, GLint *params)
219{
220 UNIMPLEMENTED();
221 return true;
222}
223
224bool ValidateGetTexEnvxv(Context *context, GLenum target, GLenum pname, GLfixed *params)
225{
226 UNIMPLEMENTED();
227 return true;
228}
229
Corentin Wallezf0e89be2017-11-08 14:00:32 -0800230bool ValidateGetTexParameterxv(Context *context, TextureType target, GLenum pname, GLfixed *params)
Geoff Lang2aaa7b42018-01-12 17:17:27 -0500231{
232 UNIMPLEMENTED();
233 return true;
234}
235
236bool ValidateLightModelf(Context *context, GLenum pname, GLfloat param)
237{
238 UNIMPLEMENTED();
239 return true;
240}
241
242bool ValidateLightModelfv(Context *context, GLenum pname, const GLfloat *params)
243{
244 UNIMPLEMENTED();
245 return true;
246}
247
248bool ValidateLightModelx(Context *context, GLenum pname, GLfixed param)
249{
250 UNIMPLEMENTED();
251 return true;
252}
253
254bool ValidateLightModelxv(Context *context, GLenum pname, const GLfixed *param)
255{
256 UNIMPLEMENTED();
257 return true;
258}
259
260bool ValidateLightf(Context *context, GLenum light, GLenum pname, GLfloat param)
261{
262 UNIMPLEMENTED();
263 return true;
264}
265
266bool ValidateLightfv(Context *context, GLenum light, GLenum pname, const GLfloat *params)
267{
268 UNIMPLEMENTED();
269 return true;
270}
271
272bool ValidateLightx(Context *context, GLenum light, GLenum pname, GLfixed param)
273{
274 UNIMPLEMENTED();
275 return true;
276}
277
278bool ValidateLightxv(Context *context, GLenum light, GLenum pname, const GLfixed *params)
279{
280 UNIMPLEMENTED();
281 return true;
282}
283
284bool ValidateLineWidthx(Context *context, GLfixed width)
285{
286 UNIMPLEMENTED();
287 return true;
288}
289
290bool ValidateLoadIdentity(Context *context)
291{
292 UNIMPLEMENTED();
293 return true;
294}
295
296bool ValidateLoadMatrixf(Context *context, const GLfloat *m)
297{
298 UNIMPLEMENTED();
299 return true;
300}
301
302bool ValidateLoadMatrixx(Context *context, const GLfixed *m)
303{
304 UNIMPLEMENTED();
305 return true;
306}
307
308bool ValidateLogicOp(Context *context, GLenum opcode)
309{
310 UNIMPLEMENTED();
311 return true;
312}
313
314bool ValidateMaterialf(Context *context, GLenum face, GLenum pname, GLfloat param)
315{
316 UNIMPLEMENTED();
317 return true;
318}
319
320bool ValidateMaterialfv(Context *context, GLenum face, GLenum pname, const GLfloat *params)
321{
322 UNIMPLEMENTED();
323 return true;
324}
325
326bool ValidateMaterialx(Context *context, GLenum face, GLenum pname, GLfixed param)
327{
328 UNIMPLEMENTED();
329 return true;
330}
331
332bool ValidateMaterialxv(Context *context, GLenum face, GLenum pname, const GLfixed *param)
333{
334 UNIMPLEMENTED();
335 return true;
336}
337
338bool ValidateMatrixMode(Context *context, GLenum mode)
339{
340 UNIMPLEMENTED();
341 return true;
342}
343
344bool ValidateMultMatrixf(Context *context, const GLfloat *m)
345{
346 UNIMPLEMENTED();
347 return true;
348}
349
350bool ValidateMultMatrixx(Context *context, const GLfixed *m)
351{
352 UNIMPLEMENTED();
353 return true;
354}
355
356bool ValidateMultiTexCoord4f(Context *context,
357 GLenum target,
358 GLfloat s,
359 GLfloat t,
360 GLfloat r,
361 GLfloat q)
362{
363 UNIMPLEMENTED();
364 return true;
365}
366
367bool ValidateMultiTexCoord4x(Context *context,
368 GLenum texture,
369 GLfixed s,
370 GLfixed t,
371 GLfixed r,
372 GLfixed q)
373{
374 UNIMPLEMENTED();
375 return true;
376}
377
378bool ValidateNormal3f(Context *context, GLfloat nx, GLfloat ny, GLfloat nz)
379{
380 UNIMPLEMENTED();
381 return true;
382}
383
384bool ValidateNormal3x(Context *context, GLfixed nx, GLfixed ny, GLfixed nz)
385{
386 UNIMPLEMENTED();
387 return true;
388}
389
390bool ValidateNormalPointer(Context *context, GLenum type, GLsizei stride, const void *pointer)
391{
392 UNIMPLEMENTED();
393 return true;
394}
395
396bool ValidateOrthof(Context *context,
397 GLfloat l,
398 GLfloat r,
399 GLfloat b,
400 GLfloat t,
401 GLfloat n,
402 GLfloat f)
403{
404 UNIMPLEMENTED();
405 return true;
406}
407
408bool ValidateOrthox(Context *context,
409 GLfixed l,
410 GLfixed r,
411 GLfixed b,
412 GLfixed t,
413 GLfixed n,
414 GLfixed f)
415{
416 UNIMPLEMENTED();
417 return true;
418}
419
420bool ValidatePointParameterf(Context *context, GLenum pname, GLfloat param)
421{
422 UNIMPLEMENTED();
423 return true;
424}
425
426bool ValidatePointParameterfv(Context *context, GLenum pname, const GLfloat *params)
427{
428 UNIMPLEMENTED();
429 return true;
430}
431
432bool ValidatePointParameterx(Context *context, GLenum pname, GLfixed param)
433{
434 UNIMPLEMENTED();
435 return true;
436}
437
438bool ValidatePointParameterxv(Context *context, GLenum pname, const GLfixed *params)
439{
440 UNIMPLEMENTED();
441 return true;
442}
443
444bool ValidatePointSize(Context *context, GLfloat size)
445{
446 UNIMPLEMENTED();
447 return true;
448}
449
450bool ValidatePointSizex(Context *context, GLfixed size)
451{
452 UNIMPLEMENTED();
453 return true;
454}
455
456bool ValidatePolygonOffsetx(Context *context, GLfixed factor, GLfixed units)
457{
458 UNIMPLEMENTED();
459 return true;
460}
461
462bool ValidatePopMatrix(Context *context)
463{
464 UNIMPLEMENTED();
465 return true;
466}
467
468bool ValidatePushMatrix(Context *context)
469{
470 UNIMPLEMENTED();
471 return true;
472}
473
474bool ValidateRotatef(Context *context, GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
475{
476 UNIMPLEMENTED();
477 return true;
478}
479
480bool ValidateRotatex(Context *context, GLfixed angle, GLfixed x, GLfixed y, GLfixed z)
481{
482 UNIMPLEMENTED();
483 return true;
484}
485
486bool ValidateSampleCoveragex(Context *context, GLclampx value, GLboolean invert)
487{
488 UNIMPLEMENTED();
489 return true;
490}
491
492bool ValidateScalef(Context *context, GLfloat x, GLfloat y, GLfloat z)
493{
494 UNIMPLEMENTED();
495 return true;
496}
497
498bool ValidateScalex(Context *context, GLfixed x, GLfixed y, GLfixed z)
499{
500 UNIMPLEMENTED();
501 return true;
502}
503
504bool ValidateShadeModel(Context *context, GLenum mode)
505{
506 UNIMPLEMENTED();
507 return true;
508}
509
510bool ValidateTexCoordPointer(Context *context,
511 GLint size,
512 GLenum type,
513 GLsizei stride,
514 const void *pointer)
515{
516 UNIMPLEMENTED();
517 return true;
518}
519
520bool ValidateTexEnvf(Context *context, GLenum target, GLenum pname, GLfloat param)
521{
522 UNIMPLEMENTED();
523 return true;
524}
525
526bool ValidateTexEnvfv(Context *context, GLenum target, GLenum pname, const GLfloat *params)
527{
528 UNIMPLEMENTED();
529 return true;
530}
531
532bool ValidateTexEnvi(Context *context, GLenum target, GLenum pname, GLint param)
533{
534 UNIMPLEMENTED();
535 return true;
536}
537
538bool ValidateTexEnviv(Context *context, GLenum target, GLenum pname, const GLint *params)
539{
540 UNIMPLEMENTED();
541 return true;
542}
543
544bool ValidateTexEnvx(Context *context, GLenum target, GLenum pname, GLfixed param)
545{
546 UNIMPLEMENTED();
547 return true;
548}
549
550bool ValidateTexEnvxv(Context *context, GLenum target, GLenum pname, const GLfixed *params)
551{
552 UNIMPLEMENTED();
553 return true;
554}
555
Corentin Wallezf0e89be2017-11-08 14:00:32 -0800556bool ValidateTexParameterx(Context *context, TextureType target, GLenum pname, GLfixed param)
Geoff Lang2aaa7b42018-01-12 17:17:27 -0500557{
558 UNIMPLEMENTED();
559 return true;
560}
561
Corentin Wallezf0e89be2017-11-08 14:00:32 -0800562bool ValidateTexParameterxv(Context *context,
563 TextureType target,
564 GLenum pname,
565 const GLfixed *params)
Geoff Lang2aaa7b42018-01-12 17:17:27 -0500566{
567 UNIMPLEMENTED();
568 return true;
569}
570
571bool ValidateTranslatef(Context *context, GLfloat x, GLfloat y, GLfloat z)
572{
573 UNIMPLEMENTED();
574 return true;
575}
576
577bool ValidateTranslatex(Context *context, GLfixed x, GLfixed y, GLfixed z)
578{
579 UNIMPLEMENTED();
580 return true;
581}
582
583bool ValidateVertexPointer(Context *context,
584 GLint size,
585 GLenum type,
586 GLsizei stride,
587 const void *pointer)
588{
589 UNIMPLEMENTED();
590 return true;
591}
592
593bool ValidateDrawTexfOES(Context *context,
594 GLfloat x,
595 GLfloat y,
596 GLfloat z,
597 GLfloat width,
598 GLfloat height)
599{
600 UNIMPLEMENTED();
601 return true;
602}
603
604bool ValidateDrawTexfvOES(Context *context, const GLfloat *coords)
605{
606 UNIMPLEMENTED();
607 return true;
608}
609
610bool ValidateDrawTexiOES(Context *context, GLint x, GLint y, GLint z, GLint width, GLint height)
611{
612 UNIMPLEMENTED();
613 return true;
614}
615
616bool ValidateDrawTexivOES(Context *context, const GLint *coords)
617{
618 UNIMPLEMENTED();
619 return true;
620}
621
622bool ValidateDrawTexsOES(Context *context,
623 GLshort x,
624 GLshort y,
625 GLshort z,
626 GLshort width,
627 GLshort height)
628{
629 UNIMPLEMENTED();
630 return true;
631}
632
633bool ValidateDrawTexsvOES(Context *context, const GLshort *coords)
634{
635 UNIMPLEMENTED();
636 return true;
637}
638
639bool ValidateDrawTexxOES(Context *context,
640 GLfixed x,
641 GLfixed y,
642 GLfixed z,
643 GLfixed width,
644 GLfixed height)
645{
646 UNIMPLEMENTED();
647 return true;
648}
649
650bool ValidateDrawTexxvOES(Context *context, const GLfixed *coords)
651{
652 UNIMPLEMENTED();
653 return true;
654}
655
656bool ValidateCurrentPaletteMatrixOES(Context *context, GLuint matrixpaletteindex)
657{
658 UNIMPLEMENTED();
659 return true;
660}
661
662bool ValidateLoadPaletteFromModelViewMatrixOES(Context *context)
663{
664 UNIMPLEMENTED();
665 return true;
666}
667
668bool ValidateMatrixIndexPointerOES(Context *context,
669 GLint size,
670 GLenum type,
671 GLsizei stride,
672 const void *pointer)
673{
674 UNIMPLEMENTED();
675 return true;
676}
677
678bool ValidateWeightPointerOES(Context *context,
679 GLint size,
680 GLenum type,
681 GLsizei stride,
682 const void *pointer)
683{
684 UNIMPLEMENTED();
685 return true;
686}
687
688bool ValidatePointSizePointerOES(Context *context, GLenum type, GLsizei stride, const void *pointer)
689{
690 UNIMPLEMENTED();
691 return true;
692}
693
694bool ValidateQueryMatrixxOES(Context *context, GLfixed *mantissa, GLint *exponent)
695{
696 UNIMPLEMENTED();
697 return true;
698}
Lingfeng Yanga0648782018-03-12 14:45:25 -0700699
700bool ValidateGenFramebuffersOES(Context *context, GLsizei n, GLuint *framebuffers)
701{
702 UNIMPLEMENTED();
703 return true;
704}
705
706bool ValidateDeleteFramebuffersOES(Context *context, GLsizei n, const GLuint *framebuffers)
707{
708 UNIMPLEMENTED();
709 return true;
710}
711
712bool ValidateGenRenderbuffersOES(Context *context, GLsizei n, GLuint *renderbuffers)
713{
714 UNIMPLEMENTED();
715 return true;
716}
717
718bool ValidateDeleteRenderbuffersOES(Context *context, GLsizei n, const GLuint *renderbuffers)
719{
720 UNIMPLEMENTED();
721 return true;
722}
723
724bool ValidateBindFramebufferOES(Context *context, GLenum target, GLuint framebuffer)
725{
726 UNIMPLEMENTED();
727 return true;
728}
729
730bool ValidateBindRenderbufferOES(Context *context, GLenum target, GLuint renderbuffer)
731{
732 UNIMPLEMENTED();
733 return true;
734}
735
736bool ValidateCheckFramebufferStatusOES(Context *context, GLenum target)
737{
738 UNIMPLEMENTED();
739 return true;
740}
741
742bool ValidateFramebufferRenderbufferOES(Context *context,
743 GLenum target,
744 GLenum attachment,
745 GLenum rbtarget,
746 GLuint renderbuffer)
747{
748 UNIMPLEMENTED();
749 return true;
750}
751
752bool ValidateFramebufferTexture2DOES(Context *context,
753 GLenum target,
754 GLenum attachment,
755 TextureTarget textarget,
756 GLuint texture,
757 GLint level)
758{
759 UNIMPLEMENTED();
760 return true;
761}
762
763bool ValidateGenerateMipmapOES(Context *context, TextureType target)
764{
765 UNIMPLEMENTED();
766 return true;
767}
768
769bool ValidateGetFramebufferAttachmentParameterivOES(Context *context,
770 GLenum target,
771 GLenum attachment,
772 GLenum pname,
773 GLint *params)
774{
775 UNIMPLEMENTED();
776 return true;
777}
778
779bool ValidateGetRenderbufferParameterivOES(Context *context,
780 GLenum target,
781 GLenum pname,
782 GLint *params)
783{
784 UNIMPLEMENTED();
785 return true;
786}
787
788bool ValidateIsFramebufferOES(Context *context, GLuint framebuffer)
789{
790 UNIMPLEMENTED();
791 return true;
792}
793
794bool ValidateIsRenderbufferOES(Context *context, GLuint renderbuffer)
795{
796 UNIMPLEMENTED();
797 return true;
798}
799
800bool ValidateRenderbufferStorageOES(Context *context,
801 GLenum target,
802 GLint internalformat,
803 GLsizei width,
804 GLsizei height)
805{
806 UNIMPLEMENTED();
807 return true;
808}
809
810// GL_OES_texture_cube_map
811
812bool ValidateGetTexGenfvOES(Context *context, GLenum coord, GLenum pname, GLfloat *params)
813{
814 UNIMPLEMENTED();
815 return true;
816}
817
818bool ValidateGetTexGenivOES(Context *context, GLenum coord, GLenum pname, int *params)
819{
820 UNIMPLEMENTED();
821 return true;
822}
823
824bool ValidateGetTexGenxvOES(Context *context, GLenum coord, GLenum pname, GLfixed *params)
825{
826 UNIMPLEMENTED();
827 return true;
828}
829
830bool ValidateTexGenfvOES(Context *context, GLenum coord, GLenum pname, const GLfloat *params)
831{
832 UNIMPLEMENTED();
833 return true;
834}
835
836bool ValidateTexGenivOES(Context *context, GLenum coord, GLenum pname, const GLint *param)
837{
838 UNIMPLEMENTED();
839 return true;
840}
841
842bool ValidateTexGenxvOES(Context *context, GLenum coord, GLenum pname, const GLint *param)
843{
844 UNIMPLEMENTED();
845 return true;
846}
847
848bool ValidateTexGenfOES(Context *context, GLenum coord, GLenum pname, GLfloat param)
849{
850 UNIMPLEMENTED();
851 return true;
852}
853
854bool ValidateTexGeniOES(Context *context, GLenum coord, GLenum pname, GLint param)
855{
856 UNIMPLEMENTED();
857 return true;
858}
859
860bool ValidateTexGenxOES(Context *context, GLenum coord, GLenum pname, GLfixed param)
861{
862 UNIMPLEMENTED();
863 return true;
864}
Geoff Lang2aaa7b42018-01-12 17:17:27 -0500865}