Home | History | Annotate | Download | only in tnl

Lines Matching full:texunit

64    /* Per-texunit derived state.
342 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit];
352 if (texUnit->_GenFlags & TEXGEN_NEED_M) {
354 } else if (texUnit->_GenFlags & TEXGEN_NEED_F) {
360 out->flags |= (in->flags & VEC_SIZE_FLAGS) | texUnit->TexGenEnabled;
363 copy = (all_bits[in->size] & ~texUnit->TexGenEnabled);
367 if (texUnit->TexGenEnabled & S_BIT) {
369 switch (texUnit->GenS.Mode) {
373 texUnit->GenS.ObjectPlane );
378 texUnit->GenS.EyePlane );
400 if (texUnit->TexGenEnabled & T_BIT) {
402 switch (texUnit->GenT.Mode) {
406 texUnit->GenT.ObjectPlane );
411 texUnit->GenT.EyePlane );
433 if (texUnit->TexGenEnabled & R_BIT) {
435 switch (texUnit->GenR.Mode) {
439 texUnit->GenR.ObjectPlane );
444 texUnit->GenR.EyePlane );
462 if (texUnit->TexGenEnabled & Q_BIT) {
463 switch (texUnit->GenQ.Mode) {
467 texUnit->GenQ.ObjectPlane );
472 texUnit->GenQ.EyePlane );
494 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[i];
496 if (texUnit->TexGenEnabled) {
518 struct gl_texture_unit *texUnit = &ctx->Texture.Unit[i];
520 if (texUnit->TexGenEnabled) {
523 if (texUnit->TexGenEnabled & Q_BIT)
525 else if (texUnit->TexGenEnabled & R_BIT)
527 else if (texUnit->TexGenEnabled & T_BIT)
536 if (texUnit->TexGenEnabled == (S_BIT|T_BIT|R_BIT)) {
537 if (texUnit->_GenFlags == TEXGEN_REFLECTION_MAP_NV) {
540 else if (texUnit->_GenFlags == TEXGEN_NORMAL_MAP_NV) {
544 else if (texUnit->TexGenEnabled == (S_BIT|T_BIT) &&
545 texUnit->_GenFlags == TEXGEN_SPHERE_MAP) {