Lines Matching full:case
25 case GL_BOOL:
26 case GL_FLOAT:
27 case GL_INT:
28 case GL_SAMPLER_2D:
29 case GL_SAMPLER_CUBE:
31 case GL_BOOL_VEC2:
32 case GL_FLOAT_VEC2:
33 case GL_INT_VEC2:
35 case GL_INT_VEC3:
36 case GL_FLOAT_VEC3:
37 case GL_BOOL_VEC3:
39 case GL_BOOL_VEC4:
40 case GL_FLOAT_VEC4:
41 case GL_INT_VEC4:
42 case GL_FLOAT_MAT2:
44 case GL_FLOAT_MAT3:
46 case GL_FLOAT_MAT4:
59 case GL_BOOL:
60 case GL_BOOL_VEC2:
61 case GL_BOOL_VEC3:
62 case GL_BOOL_VEC4:
64 case GL_FLOAT:
65 case GL_FLOAT_VEC2:
66 case GL_FLOAT_VEC3:
67 case GL_FLOAT_VEC4:
68 case GL_FLOAT_MAT2:
69 case GL_FLOAT_MAT3:
70 case GL_FLOAT_MAT4:
72 case GL_INT:
73 case GL_SAMPLER_2D:
74 case GL_SAMPLER_CUBE:
75 case GL_INT_VEC2:
76 case GL_INT_VEC3:
77 case GL_INT_VEC4:
90 case GL_BOOL: return sizeof(GLboolean);
91 case GL_FLOAT: return sizeof(GLfloat);
92 case GL_INT: return sizeof(GLint);
102 case GL_NONE:
104 case GL_BOOL:
105 case GL_FLOAT:
106 case GL_INT:
107 case GL_BOOL_VEC2:
108 case GL_FLOAT_VEC2:
109 case GL_INT_VEC2:
110 case GL_INT_VEC3:
111 case GL_FLOAT_VEC3:
112 case GL_BOOL_VEC3:
113 case GL_BOOL_VEC4:
114 case GL_FLOAT_VEC4:
115 case GL_INT_VEC4:
117 case GL_FLOAT_MAT2:
119 case GL_FLOAT_MAT3:
121 case GL_FLOAT_MAT4:
134 case GL_NONE:
136 case GL_BOOL:
137 case GL_FLOAT:
138 case GL_INT:
140 case GL_BOOL_VEC2:
141 case GL_FLOAT_VEC2:
142 case GL_INT_VEC2:
143 case GL_FLOAT_MAT2:
145 case GL_INT_VEC3:
146 case GL_FLOAT_VEC3:
147 case GL_BOOL_VEC3:
148 case GL_FLOAT_MAT3:
150 case GL_BOOL_VEC4:
151 case GL_FLOAT_VEC4:
152 case GL_INT_VEC4:
153 case GL_FLOAT_MAT4:
194 case GL_COMPRESSED_RGB_S3TC_DXT1_EXT:
195 case GL_COMPRESSED_RGBA_S3TC_DXT1_EXT:
210 case GL_COMPRESSED_RGB_S3TC_DXT1_EXT:
211 case GL_COMPRESSED_RGBA_S3TC_DXT1_EXT:
238 case GL_UNSIGNED_BYTE:
241 case GL_ALPHA: return sizeof(unsigned char);
242 case GL_LUMINANCE: return sizeof(unsigned char);
243 case GL_LUMINANCE_ALPHA: return sizeof(unsigned char) * 2;
244 case GL_RGB: return sizeof(unsigned char) * 3;
245 case GL_RGBA: return sizeof(unsigned char) * 4;
246 case GL_BGRA_EXT: return sizeof(unsigned char) * 4;
250 case GL_UNSIGNED_SHORT_4_4_4_4:
251 case GL_UNSIGNED_SHORT_5_5_5_1:
252 case GL_UNSIGNED_SHORT_5_6_5:
254 case GL_FLOAT:
257 case GL_ALPHA: return sizeof(float);
258 case GL_LUMINANCE: return sizeof(float);
259 case GL_LUMINANCE_ALPHA: return sizeof(float) * 2;
260 case GL_RGB: return sizeof(float) * 3;
261 case GL_RGBA: return sizeof(float) * 4;
265 case GL_HALF_FLOAT_OES:
268 case GL_ALPHA: return sizeof(unsigned short);
269 case GL_LUMINANCE: return sizeof(unsigned short);
270 case GL_LUMINANCE_ALPHA: return sizeof(unsigned short) * 2;
271 case GL_RGB: return sizeof(unsigned short) * 3;
272 case GL_RGBA: return sizeof(unsigned short) * 4;
297 case GL_UNSIGNED_BYTE:
300 case GL_RGBA:
301 case GL_BGRA_EXT:
302 case GL_RGB:
303 case GL_ALPHA:
304 case GL_LUMINANCE:
305 case GL_LUMINANCE_ALPHA:
312 case GL_FLOAT:
313 case GL_HALF_FLOAT_OES:
316 case GL_RGBA:
317 case GL_RGB:
318 case GL_ALPHA:
319 case GL_LUMINANCE:
320 case GL_LUMINANCE_ALPHA:
327 case GL_UNSIGNED_SHORT_4_4_4_4:
328 case GL_UNSIGNED_SHORT_5_5_5_1:
331 case GL_UNSIGNED_SHORT_5_6_5:
343 case GL_RGBA4:
344 case GL_RGB5_A1:
345 case GL_RGB565:
346 case GL_RGB8_OES:
347 case GL_RGBA8_OES:
349 case GL_DEPTH_COMPONENT16:
350 case GL_STENCIL_INDEX8:
351 case GL_DEPTH24_STENCIL8_OES:
364 case GL_DEPTH_COMPONENT16:
365 case GL_DEPTH24_STENCIL8_OES:
367 case GL_STENCIL_INDEX8:
368 case GL_RGBA4:
369 case GL_RGB5_A1:
370 case GL_RGB565:
371 case GL_RGB8_OES:
372 case GL_RGBA8_OES:
385 case GL_STENCIL_INDEX8:
386 case GL_DEPTH24_STENCIL8_OES:
388 case GL_RGBA4:
389 case GL_RGB5_A1:
390 case GL_RGB565:
391 case GL_RGB8_OES:
392 case GL_RGBA8_OES:
393 case GL_DEPTH_COMPONENT16:
412 case GL_NEVER: d3dComp = D3DCMP_NEVER; break;
413 case GL_ALWAYS: d3dComp = D3DCMP_ALWAYS; break;
414 case GL_LESS: d3dComp = D3DCMP_LESS; break;
415 case GL_LEQUAL: d3dComp = D3DCMP_LESSEQUAL; break;
416 case GL_EQUAL: d3dComp = D3DCMP_EQUAL; break;
417 case GL_GREATER: d3dComp = D3DCMP_GREATER; break;
418 case GL_GEQUAL: d3dComp = D3DCMP_GREATEREQUAL; break;
419 case GL_NOTEQUAL: d3dComp = D3DCMP_NOTEQUAL; break;
440 case GL_ZERO: d3dBlend = D3DBLEND_ZERO; break;
441 case GL_ONE: d3dBlend = D3DBLEND_ONE; break;
442 case GL_SRC_COLOR: d3dBlend = D3DBLEND_SRCCOLOR; break;
443 case GL_ONE_MINUS_SRC_COLOR: d3dBlend = D3DBLEND_INVSRCCOLOR; break;
444 case GL_DST_COLOR: d3dBlend = D3DBLEND_DESTCOLOR; break;
445 case GL_ONE_MINUS_DST_COLOR: d3dBlend = D3DBLEND_INVDESTCOLOR; break;
446 case GL_SRC_ALPHA: d3dBlend = D3DBLEND_SRCALPHA; break;
447 case GL_ONE_MINUS_SRC_ALPHA: d3dBlend = D3DBLEND_INVSRCALPHA; break;
448 case GL_DST_ALPHA: d3dBlend = D3DBLEND_DESTALPHA; break;
449 case GL_ONE_MINUS_DST_ALPHA: d3dBlend = D3DBLEND_INVDESTALPHA; break;
450 case GL_CONSTANT_COLOR: d3dBlend = D3DBLEND_BLENDFACTOR; break;
451 case GL_ONE_MINUS_CONSTANT_COLOR: d3dBlend = D3DBLEND_INVBLENDFACTOR; break;
452 case GL_CONSTANT_ALPHA: d3dBlend = D3DBLEND_BLENDFACTOR; break;
453 case GL_ONE_MINUS_CONSTANT_ALPHA: d3dBlend = D3DBLEND_INVBLENDFACTOR; break;
454 case GL_SRC_ALPHA_SATURATE: d3dBlend = D3DBLEND_SRCALPHASAT; break;
467 case GL_FUNC_ADD: d3dBlendOp = D3DBLENDOP_ADD; break;
468 case GL_FUNC_SUBTRACT: d3dBlendOp = D3DBLENDOP_SUBTRACT; break;
469 case GL_FUNC_REVERSE_SUBTRACT: d3dBlendOp = D3DBLENDOP_REVSUBTRACT; break;
482 case GL_ZERO: d3dStencilOp = D3DSTENCILOP_ZERO; break;
483 case GL_KEEP: d3dStencilOp = D3DSTENCILOP_KEEP; break;
484 case GL_REPLACE: d3dStencilOp = D3DSTENCILOP_REPLACE; break;
485 case GL_INCR: d3dStencilOp = D3DSTENCILOP_INCRSAT; break;
486 case GL_DECR: d3dStencilOp = D3DSTENCILOP_DECRSAT; break;
487 case GL_INVERT: d3dStencilOp = D3DSTENCILOP_INVERT; break;
488 case GL_INCR_WRAP: d3dStencilOp = D3DSTENCILOP_INCR; break;
489 case GL_DECR_WRAP: d3dStencilOp = D3DSTENCILOP_DECR; break;
502 case GL_REPEAT: d3dWrap = D3DTADDRESS_WRAP; break;
503 case GL_CLAMP_TO_EDGE: d3dWrap = D3DTADDRESS_CLAMP; break;
504 case GL_MIRRORED_REPEAT: d3dWrap = D3DTADDRESS_MIRROR; break;
516 case GL_FRONT:
519 case GL_BACK:
522 case GL_FRONT_AND_BACK:
544 case GL_NEAREST: d3dMagFilter = D3DTEXF_POINT; break;
545 case GL_LINEAR: d3dMagFilter = D3DTEXF_LINEAR; break;
556 case GL_NEAREST:
560 case GL_LINEAR:
564 case GL_NEAREST_MIPMAP_NEAREST:
568 case GL_LINEAR_MIPMAP_NEAREST:
572 case GL_NEAREST_MIPMAP_LINEAR:
576 case GL_LINEAR_MIPMAP_LINEAR:
591 case D3DFMT_D24FS8:
592 case D3DFMT_D24S8:
594 case D3DFMT_D24X4S4:
596 case D3DFMT_D15S1:
598 case D3DFMT_D16_LOCKABLE:
599 case D3DFMT_D32:
600 case D3DFMT_D24X8:
601 case D3DFMT_D32F_LOCKABLE:
602 case D3DFMT_D16:
604 // case D3DFMT_D32_LOCKABLE: return 0; // DirectX 9Ex only
605 // case D3DFMT_S8_LOCKABLE: return 8; // DirectX 9Ex only
615 case D3DFMT_A16B16G16R16F:
617 case D3DFMT_A32B32G32R32F:
619 case D3DFMT_A2R10G10B10:
621 case D3DFMT_A8R8G8B8:
623 case D3DFMT_A1R5G5B5:
625 case D3DFMT_X8R8G8B8:
626 case D3DFMT_R5G6B5:
637 case D3DFMT_A16B16G16R16F:
639 case D3DFMT_A32B32G32R32F:
641 case D3DFMT_A2R10G10B10:
643 case D3DFMT_A8R8G8B8:
644 case
646 case D3DFMT_A1R5G5B5:
647 case D3DFMT_R5G6B5:
658 case D3DFMT_A16B16G16R16F:
660 case D3DFMT_A32B32G32R32F:
662 case D3DFMT_A2R10G10B10:
664 case D3DFMT_A8R8G8B8:
665 case D3DFMT_X8R8G8B8:
667 case D3DFMT_A1R5G5B5:
669 case D3DFMT_R5G6B5:
680 case D3DFMT_A16B16G16R16F:
682 case D3DFMT_A32B32G32R32F:
684 case D3DFMT_A2R10G10B10:
686 case D3DFMT_A8R8G8B8:
687 case D3DFMT_X8R8G8B8:
689 case D3DFMT_A1R5G5B5:
690 case D3DFMT_R5G6B5:
701 case D3DFMT_D16_LOCKABLE: return 16;
702 case D3DFMT_D32: return 32;
703 case D3DFMT_D15S1: return 15;
704 case D3DFMT_D24S8: return 24;
705 case D3DFMT_D24X8: return 24;
706 case D3DFMT_D24X4S4: return 24;
707 case D3DFMT_D16: return 16;
708 case D3DFMT_D32F_LOCKABLE: return 32;
709 case D3DFMT_D24FS8: return 24;
710 //case D3DFMT_D32_LOCKABLE: return 32; // D3D9Ex only
711 //case D3DFMT_S8_LOCKABLE: return 0; // D3D9Ex only
723 case GL_POINTS:
727 case GL_LINES:
731 case GL_LINE_LOOP:
735 case GL_LINE_STRIP:
739 case GL_TRIANGLES:
743 case GL_TRIANGLE_STRIP:
747 case GL_TRIANGLE_FAN:
762 case GL_RGBA4:
763 case GL_RGB5_A1:
764 case GL_RGBA8_OES: return D3DFMT_A8R8G8B8;
765 case GL_RGB565: return D3DFMT_R5G6B5;
766 case GL_RGB8_OES: return D3DFMT_X8R8G8B8;
767 case GL_DEPTH_COMPONENT16:
768 case GL_STENCIL_INDEX8:
769 case GL_DEPTH24_STENCIL8_OES: return D3DFMT_D24S8;
799 case D3DFMT_A4R4G4B4: return GL_RGBA4;
800 case D3DFMT_A8R8G8B8: return GL_RGBA8_OES;
801 case D3DFMT_A1R5G5B5: return GL_RGB5_A1;
802 case D3DFMT_R5G6B5: return GL_RGB565;
803 case D3DFMT_X8R8G8B8: return GL_RGB8_OES;
815 case D3DFMT_D16:
816 case D3DFMT_D24X8:
818 case D3DFMT_D24S8: