Home | History | Annotate | Download | only in main

Lines Matching refs:TexGen

27  * \file texgen.c
38 #include "main/texgen.h"
48 * Return texgen state for given coordinate
78 struct gl_texgen *texgen;
96 texgen = get_texgen(ctx, texUnit, coord);
97 if (!texgen) {
107 if (texgen->Mode == mode)
142 texgen->Mode = mode;
143 texgen->_ModeBit = bit;
153 if (TEST_EQ_4V(texgen->ObjectPlane, params))
156 COPY_4FV(texgen->ObjectPlane, params);
175 if (TEST_EQ_4V(texgen->EyePlane, tmp))
178 COPY_4FV(texgen->EyePlane, tmp);
187 if (ctx->Driver.TexGen)
188 ctx->Driver.TexGen( ctx, coord, pname, params );
300 struct gl_texgen *texgen;
311 texgen = get_texgen(ctx, texUnit, coord);
312 if (!texgen) {
319 params[0] = ENUM_TO_DOUBLE(texgen->Mode);
322 COPY_4V(params, texgen->ObjectPlane);
325 COPY_4V(params, texgen->EyePlane);
338 struct gl_texgen *texgen;
349 texgen = get_texgen(ctx, texUnit, coord);
350 if (!texgen) {
357 params[0] = ENUM_TO_FLOAT(texgen->Mode);
364 COPY_4V(params, texgen->ObjectPlane);
371 COPY_4V(params, texgen->EyePlane);
384 struct gl_texgen *texgen;
395 texgen = get_texgen(ctx, texUnit, coord);
396 if (!texgen) {
403 params[0] = texgen->Mode;
410 params[0] = (GLint) texgen->ObjectPlane[0];
411 params[1] = (GLint) texgen->ObjectPlane[1];
412 params[2] = (GLint) texgen->ObjectPlane[2];
413 params[3] = (GLint) texgen->ObjectPlane[3];
420 params[0] = (GLint) texgen->EyePlane[0];
421 params[1] = (GLint) texgen->EyePlane[1];
422 params[2] = (GLint) texgen->EyePlane[2];
423 params[3] = (GLint) texgen->EyePlane[3];