Lines Matching refs:param

1111 crStateTexParameterfv(GLenum target, GLenum pname, const GLfloat *param) 
1116 GLenum e = (GLenum) *param;
1148 "TexParamterfv: GL_TEXTURE_MIN_FILTER invalid param: %d", e);
1157 "TexParamterfv: GL_TEXTURE_MAG_FILTER invalid param: %d", e);
1193 "TexParameterfv: GL_TEXTURE_WRAP_S invalid param: 0x%x", e);
1228 "TexParameterfv: GL_TEXTURE_WRAP_T invalid param: 0x%x", e);
1262 "TexParameterfv: GL_TEXTURE_WRAP_R invalid param: 0x%x", e);
1267 tobj->priority = param[0];
1270 tobj->minLod = param[0];
1273 tobj->maxLod = param[0];
1279 "TexParameterfv: GL_TEXTURE_BASE_LEVEL invalid param: 0x%x", e);
1288 "TexParameterfv: GL_TEXTURE_MAX_LEVEL invalid param: 0x%x", e);
1295 tobj->borderColor.r = param[0];
1296 tobj->borderColor.g = param[1];
1297 tobj->borderColor.b = param[2];
1298 tobj->borderColor.a = param[3];
1303 if (param[0] < 1.0f)
1306 "TexParameterfv: GL_TEXTURE_MAX_ANISOTROPY_EXT called with parameter less than 1: %f", param[0]);
1309 tobj->maxAnisotropy = param[0];
1320 if (param[0] == GL_LUMINANCE ||
1321 param[0] == GL_INTENSITY ||
1322 param[0] == GL_ALPHA) {
1323 tobj->depthMode = (GLenum) param[0];
1328 "TexParameterfv: GL_DEPTH_TEXTURE_MODE_ARB called with invalid parameter: 0x%x", param[0]);
1337 if (param[0] == GL_NONE ||
1338 param[0] == GL_COMPARE_R_TO_TEXTURE_ARB) {
1339 tobj->compareMode = (GLenum) param[0];
1344 "TexParameterfv: GL_TEXTURE_COMPARE_MODE_ARB called with invalid parameter: 0x%x", param[0]);
1351 if (param[0] == GL_LEQUAL ||
1352 param[0] == GL_GEQUAL) {
1353 tobj->compareFunc = (GLenum) param[0];
1358 if (param[0] == GL_LEQUAL ||
1359 param[0] == GL_GEQUAL ||
1360 param[0] == GL_LESS ||
1361 param[0] == GL_GREATER ||
1362 param[0] == GL_ALWAYS ||
1363 param[0] == GL_NEVER ) {
1364 tobj->compareFunc = (GLenum) param[0];
1370 "TexParameterfv: GL_TEXTURE_COMPARE_FUNC_ARB called with invalid parameter: 0x%x", param[0]);
1378 tobj->compareFailValue = param[0];
1385 tobj->generateMipmap = param[0] ? GL_TRUE : GL_FALSE;
1405 crStateTexParameteriv(GLenum target, GLenum pname, const GLint *param)
1439 f_param = (GLfloat) (*param);
1443 f_color.r = ((GLfloat) param[0])/CR_MAXINT;
1444 f_color.g = ((GLfloat) param[1])/CR_MAXINT;
1445 f_color.b = ((GLfloat) param[2])/CR_MAXINT;
1446 f_color.a = ((GLfloat) param[3])/CR_MAXINT;
1458 crStateTexParameterf(GLenum target, GLenum pname, GLfloat param)
1460 crStateTexParameterfv( target, pname, &param );
1465 crStateTexParameteri(GLenum target, GLenum pname, GLint param) {
1466 GLfloat f_param = (GLfloat) param;
1472 crStateTexEnvfv(GLenum target, GLenum pname, const GLfloat *param)
1499 t->unit[t->curTextureUnit].lodBias = *param;
1514 g->point.coordReplacement[t->curTextureUnit] = *param ? GL_TRUE : GL_FALSE;
1532 e = (GLenum) *param;
1541 "glTexEnvfv: invalid param: %f", *param);
1547 c.r = param[0];
1548 c.g = param[1];
1549 c.b = param[2];
1550 c.a = param[3];
1564 e = (GLenum) (GLint) *param;
1584 crStateError(__LINE__, __FILE__, GL_INVALID_ENUM, "glTexEnvfv(param=0x%x", e);
1589 e = (GLenum) *param;
1607 e = (GLenum) *param;
1629 e = (GLenum) *param;
1651 e = (GLenum) *param;
1668 e = (GLenum) *param;
1676 crStateError(__LINE__, __FILE__, GL_INVALID_ENUM, "glTexEnvfv(param=0x%x)", e);
1682 (*param == 1.0 ||
1683 *param == 2.0 ||
1684 *param == 4.0)) {
1685 t->unit[t->curTextureUnit].combineScaleRGB = *param;
1694 (*param == 1.0 ||
1695 *param == 2.0 ||
1696 *param == 4.0)) {
1697 t->unit[t->curTextureUnit].combineScaleA = *param;
1718 crStateTexEnviv(GLenum target, GLenum pname, const GLint *param)
1725 f_param = (GLfloat) (*param);
1729 f_color.r = ((GLfloat) param[0]) / CR_MAXINT;
1730 f_color.g = ((GLfloat) param[1]) / CR_MAXINT;
1731 f_color.b = ((GLfloat) param[2]) / CR_MAXINT;
1732 f_color.a = ((GLfloat) param[3]) / CR_MAXINT;
1752 f_param = (GLfloat) (*param);
1758 f_param = (GLfloat) (*param);
1764 f_param = (GLfloat) *param;
1778 crStateTexEnvf(GLenum target, GLenum pname, GLfloat param)
1780 crStateTexEnvfv( target, pname, &param );
1785 crStateTexEnvi(GLenum target, GLenum pname, GLint param)
1787 GLfloat f_param = (GLfloat) param;
1793 crStateGetTexEnvfv(GLenum target, GLenum pname, GLfloat *param)
1811 *param = t->unit[t->curTextureUnit].lodBias;
1823 *param = (GLfloat) g->point.coordReplacement[t->curTextureUnit];
1838 *param = (GLfloat) t->unit[t->curTextureUnit].envMode;
1841 param[0] = t->unit[t->curTextureUnit].envColor.r;
1842 param[1] = t->unit[t->curTextureUnit].envColor.g;
1843 param[2] = t->unit[t->curTextureUnit].envColor.b;
1844 param[3] = t->unit[t->curTextureUnit].envColor.a;
1848 *param = (GLfloat) t->unit[t->curTextureUnit].combineModeRGB;
1857 *param = (GLfloat) t->unit[t->curTextureUnit].combineModeA;
1866 *param = (GLfloat) t->unit[t->curTextureUnit].combineSourceRGB[0];
1875 *param = (GLfloat) t->unit[t->curTextureUnit].combineSourceRGB[1];
1884 *param = (GLfloat) t->unit[t->curTextureUnit].combineSourceRGB[2];
1893 *param = (GLfloat) t->unit[t->curTextureUnit].combineSourceA[0];
1902 *param = (GLfloat) t->unit[t->curTextureUnit].combineSourceA[1];
1911 *param = (GLfloat) t->unit[t->curTextureUnit].combineSourceA[2];
1920 *param = (GLfloat) t->unit[t->curTextureUnit].combineOperandRGB[0];
1929 *param = (GLfloat) t->unit[t->curTextureUnit].combineOperandRGB[1];
1938 *param = (GLfloat) t->unit[t->curTextureUnit].combineOperandRGB[2];
1947 *param = (GLfloat) t->unit[t->curTextureUnit].combineOperandA[0];
1956 *param = (GLfloat) t->unit[t->curTextureUnit].combineOperandA[1];
1965 *param = (GLfloat) t->unit[t->curTextureUnit].combineOperandA[2];
1974 *param = t->unit[t->curTextureUnit].combineScaleRGB;
1983 *param = t->unit[t->curTextureUnit].combineScaleA;
1999 crStateGetTexEnviv(GLenum target, GLenum pname, GLint *param)
2017 *param = (GLint) t->unit[t->curTextureUnit].lodBias;
2029 *param = (GLint) g->point.coordReplacement[t->curTextureUnit];
2044 *param = (GLint) t->unit[t->curTextureUnit].envMode;
2047 param[0] = (GLint) (t->unit[t->curTextureUnit].envColor.r * CR_MAXINT);
2048 param[1] = (GLint) (t->unit[t->curTextureUnit].envColor.g * CR_MAXINT);
2049 param[2] = (GLint) (t->unit[t->curTextureUnit].envColor.b * CR_MAXINT);
2050 param[3] = (GLint) (t->unit[t->curTextureUnit].envColor.a * CR_MAXINT);
2054 *param = (GLint) t->unit[t->curTextureUnit].combineModeRGB;
2063 *param = (GLint) t->unit[t->curTextureUnit].combineModeA;
2072 *param = (GLint) t->unit[t->curTextureUnit].combineSourceRGB[0];
2081 *param = (GLint) t->unit[t->curTextureUnit].combineSourceRGB[1];
2090 *param = (GLint) t->unit[t->curTextureUnit].combineSourceRGB[2];
2099 *param = (GLint) t->unit[t->curTextureUnit].combineSourceA[0];
2108 *param = (GLint) t->unit[t->curTextureUnit].combineSourceA[1];
2117 *param = (GLint) t->unit[t->curTextureUnit].combineSourceA[2];
2126 *param = (GLint) t->unit[t->curTextureUnit].combineOperandRGB[0];
2135 *param = (GLint) t->unit[t->curTextureUnit].combineOperandRGB[1];
2144 *param = (GLint) t->unit[t->curTextureUnit].combineOperandRGB[2];
2153 *param = (GLint) t->unit[t->curTextureUnit].combineOperandA[0];
2162 *param = (GLint) t->unit[t->curTextureUnit].combineOperandA[1];
2171 *param = (GLint) t->unit[t->curTextureUnit].combineOperandA[2];
2180 *param = (GLint) t->unit[t->curTextureUnit].combineScaleRGB;
2189 *param = (GLint) t->unit[t->curTextureUnit].combineScaleA;
2205 crStateTexGendv(GLenum coord, GLenum pname, const GLdouble *param)
2231 e = (GLenum) *param;
2246 "glTexGendv called with bad param: %lf", *param);
2251 v.x = (GLfloat) param[0];
2252 v.y = (GLfloat) param[1];
2253 v.z = (GLfloat) param[2];
2254 v.w = (GLfloat) param[3];
2260 v.x = (GLfloat) param[0];
2261 v.y = (GLfloat) param[1];
2262 v.z = (GLfloat) param[2];
2263 v.w = (GLfloat) param[3];
2279 e = (GLenum) *param;
2294 "glTexGendv called with bad param: %lf", *param);
2299 v.x = (GLfloat) param[0];
2300 v.y = (GLfloat) param[1];
2301 v.z = (GLfloat) param[2];
2302 v.w = (GLfloat) param[3];
2308 v.x = (GLfloat) param[0];
2309 v.y = (GLfloat) param[1];
2310 v.z = (GLfloat) param[2];
2311 v.w = (GLfloat) param[3];
2327 e = (GLenum) *param;
2342 "glTexGen called with bad param: %lf", *param);
2347 v.x = (GLfloat) param[0];
2348 v.y = (GLfloat) param[1];
2349 v.z = (GLfloat) param[2];
2350 v.w = (GLfloat) param[3];
2356 v.x = (GLfloat) param[0];
2357 v.y = (GLfloat) param[1];
2358 v.z = (GLfloat) param[2];
2359 v.w = (GLfloat) param[3];
2375 e = (GLenum) *param;
2390 "glTexGen called with bad param: %lf", *param);
2395 v.x = (GLfloat) param[0];
2396 v.y = (GLfloat) param[1];
2397 v.z = (GLfloat) param[2];
2398 v.w = (GLfloat) param[3];
2404 v.x = (GLfloat) param[0];
2405 v.y = (GLfloat) param[1];
2406 v.z = (GLfloat) param[2];
2407 v.w = (GLfloat) param[3];
2429 crStateTexGenfv(GLenum coord, GLenum pname, const GLfloat *param)
2436 d_param = (GLdouble) *param;
2441 d_vector.x = (GLdouble) param[0];
2442 d_vector.y = (GLdouble) param[1];
2443 d_vector.z = (GLdouble) param[2];
2444 d_vector.w = (GLdouble) param[3];
2456 crStateTexGeniv(GLenum coord, GLenum pname, const GLint *param)
2463 d_param = (GLdouble) *param;
2468 d_vector.x = (GLdouble) param[0];
2469 d_vector.y = (GLdouble) param[1];
2470 d_vector.z = (GLdouble) param[2];
2471 d_vector.w = (GLdouble) param[3];
2483 crStateTexGend (GLenum coord, GLenum pname, GLdouble param)
2485 crStateTexGendv( coord, pname, &param );
2490 crStateTexGenf(GLenum coord, GLenum pname, GLfloat param)
2492 GLdouble d_param = (GLdouble) param;
2498 crStateTexGeni(GLenum coord, GLenum pname, GLint param)
2500 GLdouble d_param = (GLdouble) param;
2506 crStateGetTexGendv(GLenum coord, GLenum pname, GLdouble *param)
2522 *param = (GLdouble) t->unit[t->curTextureUnit].gen.s;
2525 *param = (GLdouble) t->unit[t->curTextureUnit].gen.t;
2528 *param = (GLdouble) t->unit[t->curTextureUnit].gen.r;
2531 *param = (GLdouble) t->unit[t->curTextureUnit].gen.q;
2542 param[0] = (GLdouble) t->unit[t->curTextureUnit].objSCoeff.x;
2543 param[1] = (GLdouble) t->unit[t->curTextureUnit].objSCoeff.y;
2544 param[2] = (GLdouble) t->unit[t->curTextureUnit].objSCoeff.z;
2545 param[3] = (GLdouble) t->unit[t->curTextureUnit].objSCoeff.w;
2548 param[0] = (GLdouble) t->unit[t->curTextureUnit].objTCoeff.x;
2549 param[1] = (GLdouble) t->unit[t->curTextureUnit].objTCoeff.y;
2550 param[2] = (GLdouble) t->unit[t->curTextureUnit].objTCoeff.z;
2551 param[3] = (GLdouble) t->unit[t->curTextureUnit].objTCoeff.w;
2554 param[0] = (GLdouble) t->unit[t->curTextureUnit].objRCoeff.x;
2555 param[1] = (GLdouble) t->unit[t->curTextureUnit].objRCoeff.y;
2556 param[2] = (GLdouble) t->unit[t->curTextureUnit].objRCoeff.z;
2557 param[3] = (GLdouble) t->unit[t->curTextureUnit].objRCoeff.w;
2560 param[0] = (GLdouble) t->unit[t->curTextureUnit].objQCoeff.x;
2561 param[1] = (GLdouble) t->unit[t->curTextureUnit].objQCoeff.y;
2562 param[2] = (GLdouble) t->unit[t->curTextureUnit].objQCoeff.z;
2563 param[3] = (GLdouble) t->unit[t->curTextureUnit].objQCoeff.w;
2574 param[0] = (GLdouble) t->unit[t->curTextureUnit].eyeSCoeff.x;
2575 param[1] = (GLdouble) t->unit[t->curTextureUnit].eyeSCoeff.y;
2576 param[2] = (GLdouble) t->unit[t->curTextureUnit].eyeSCoeff.z;
2577 param[3] = (GLdouble) t->unit[t->curTextureUnit].eyeSCoeff.w;
2580 param[0] = (GLdouble) t->unit[t->curTextureUnit].eyeTCoeff.x;
2581 param[1] = (GLdouble) t->unit[t->curTextureUnit].eyeTCoeff.y;
2582 param[2] = (GLdouble) t->unit[t->curTextureUnit].eyeTCoeff.z;
2583 param[3] = (GLdouble) t->unit[t->curTextureUnit].eyeTCoeff.w;
2586 param[0] = (GLdouble) t->unit[t->curTextureUnit].eyeRCoeff.x;
2587 param[1] = (GLdouble) t->unit[t->curTextureUnit].eyeRCoeff.y;
2588 param[2] = (GLdouble) t->unit[t->curTextureUnit].eyeRCoeff.z;
2589 param[3] = (GLdouble) t->unit[t->curTextureUnit].eyeRCoeff.w;
2592 param[0] = (GLdouble) t->unit[t->curTextureUnit].eyeQCoeff.x;
2593 param[1] = (GLdouble) t->unit[t->curTextureUnit].eyeQCoeff.y;
2594 param[2] = (GLdouble) t->unit[t->curTextureUnit].eyeQCoeff.z;
2595 param[3] = (GLdouble) t->unit[t->curTextureUnit].eyeQCoeff.w;
2612 crStateGetTexGenfv(GLenum coord, GLenum pname, GLfloat *param)
2628 *param = (GLfloat) t->unit[t->curTextureUnit].gen.s;
2631 *param = (GLfloat) t->unit[t->curTextureUnit].gen.t;
2634 *param = (GLfloat) t->unit[t->curTextureUnit].gen.r;
2637 *param = (GLfloat) t->unit[t->curTextureUnit].gen.q;
2648 param[0] = t->unit[t->curTextureUnit].objSCoeff.x;
2649 param[1] = t->unit[t->curTextureUnit].objSCoeff.y;
2650 param[2] = t->unit[t->curTextureUnit].objSCoeff.z;
2651 param[3] = t->unit[t->curTextureUnit].objSCoeff.w;
2654 param[0] = t->unit[t->curTextureUnit].objTCoeff.x;
2655 param[1] = t->unit[t->curTextureUnit].objTCoeff.y;
2656 param[2] = t->unit[t->curTextureUnit].objTCoeff.z;
2657 param[3] = t->unit[t->curTextureUnit].objTCoeff.w;
2660 param[0] = t->unit[t->curTextureUnit].objRCoeff.x;
2661 param[1] = t->unit[t->curTextureUnit].objRCoeff.y;
2662 param[2] = t->unit[t->curTextureUnit].objRCoeff.z;
2663 param[3] = t->unit[t->curTextureUnit].objRCoeff.w;
2666 param[0] = t->unit[t->curTextureUnit].objQCoeff.x;
2667 param[1] = t->unit[t->curTextureUnit].objQCoeff.y;
2668 param[2] = t->unit[t->curTextureUnit].objQCoeff.z;
2669 param[3] = t->unit[t->curTextureUnit].objQCoeff.w;
2680 param[0] = t->unit[t->curTextureUnit].eyeSCoeff.x;
2681 param[1] = t->unit[t->curTextureUnit].eyeSCoeff.y;
2682 param[2] = t->unit[t->curTextureUnit].eyeSCoeff.z;
2683 param[3] = t->unit[t->curTextureUnit].eyeSCoeff.w;
2686 param[0] = t->unit[t->curTextureUnit].eyeTCoeff.x;
2687 param[1] = t->unit[t->curTextureUnit].eyeTCoeff.y;
2688 param[2] = t->unit[t->curTextureUnit].eyeTCoeff.z;
2689 param[3] = t->unit[t->curTextureUnit].eyeTCoeff.w;
2692 param[0] = t->unit[t->curTextureUnit].eyeRCoeff.x;
2693 param[1] = t->unit[t->curTextureUnit].eyeRCoeff.y;
2694 param[2] = t->unit[t->curTextureUnit].eyeRCoeff.z;
2695 param[3] = t->unit[t->curTextureUnit].eyeRCoeff.w;
2698 param[0] = t->unit[t->curTextureUnit].eyeQCoeff.x;
2699 param[1] = t->unit[t->curTextureUnit].eyeQCoeff.y;
2700 param[2] = t->unit[t->curTextureUnit].eyeQCoeff.z;
2701 param[3] = t->unit[t->curTextureUnit].eyeQCoeff.w;
2718 crStateGetTexGeniv(GLenum coord, GLenum pname, GLint *param)
2734 *param = (GLint) t->unit[t->curTextureUnit].gen.s;
2737 *param = (GLint) t->unit[t->curTextureUnit].gen.t;
2740 *param = (GLint) t->unit[t->curTextureUnit].gen.r;
2743 *param = (GLint) t->unit[t->curTextureUnit].gen.q;
2754 param[0] = (GLint) t->unit[t->curTextureUnit].objSCoeff.x;
2755 param[1] = (GLint) t->unit[t->curTextureUnit].objSCoeff.y;
2756 param[2] = (GLint) t->unit[t->curTextureUnit].objSCoeff.z;
2757 param[3] = (GLint) t->unit[t->curTextureUnit].objSCoeff.w;
2760 param[0] = (GLint) t->unit[t->curTextureUnit].objTCoeff.x;
2761 param[1] = (GLint) t->unit[t->curTextureUnit].objTCoeff.y;
2762 param[2] = (GLint) t->unit[t->curTextureUnit].objTCoeff.z;
2763 param[3] = (GLint) t->unit[t->curTextureUnit].objTCoeff.w;
2766 param[0] = (GLint) t->unit[t->curTextureUnit].objRCoeff.x;
2767 param[1] = (GLint) t->unit[t->curTextureUnit].objRCoeff.y;
2768 param[2] = (GLint) t->unit[t->curTextureUnit].objRCoeff.z;
2769 param[3] = (GLint) t->unit[t->curTextureUnit].objRCoeff.w;
2772 param[0] = (GLint) t->unit[t->curTextureUnit].objQCoeff.x;
2773 param[1] = (GLint) t->unit[t->curTextureUnit].objQCoeff.y;
2774 param[2] = (GLint) t->unit[t->curTextureUnit].objQCoeff.z;
2775 param[3] = (GLint) t->unit[t->curTextureUnit].objQCoeff.w;
2786 param[0] = (GLint) t->unit[t->curTextureUnit].eyeSCoeff.x;
2787 param[1] = (GLint) t->unit[t->curTextureUnit].eyeSCoeff.y;
2788 param[2] = (GLint) t->unit[t->curTextureUnit].eyeSCoeff.z;
2789 param[3] = (GLint) t->unit[t->curTextureUnit].eyeSCoeff.w;
2792 param[0] = (GLint) t->unit[t->curTextureUnit].eyeTCoeff.x;
2793 param[1] = (GLint) t->unit[t->curTextureUnit].eyeTCoeff.y;
2794 param[2] = (GLint) t->unit[t->curTextureUnit].eyeTCoeff.z;
2795 param[3] = (GLint) t->unit[t->curTextureUnit].eyeTCoeff.w;
2798 param[0] = (GLint) t->unit[t->curTextureUnit].eyeRCoeff.x;
2799 param[1] = (GLint) t->unit[t->curTextureUnit].eyeRCoeff.y;
2800 param[2] = (GLint) t->unit[t->curTextureUnit].eyeRCoeff.z;
2801 param[3] = (GLint) t->unit[t->curTextureUnit].eyeRCoeff.w;
2804 param[0] = (GLint) t->unit[t->curTextureUnit].eyeQCoeff.x;
2805 param[1] = (GLint) t->unit[t->curTextureUnit].eyeQCoeff.y;
2806 param[2] = (GLint) t->unit[t->curTextureUnit].eyeQCoeff.z;
2807 param[3] = (GLint) t->unit[t->curTextureUnit].eyeQCoeff.w;