Lines Matching defs:unit

86    } unit[NUM_UNITS];
206 key->unit[i].light_enabled = 1;
209 key->unit[i].light_eyepos3_is_zero = 1;
212 key->unit[i].light_spotcutoff_is_180 = 1;
217 key->unit[i].light_attenuated = 1;
256 key->unit[i].coord_replace = 1;
259 key->unit[i].texmat_enabled = 1;
262 key->unit[i].texgen_enabled = 1;
264 key->unit[i].texgen_mode0 =
267 key->unit[i].texgen_mode1 =
270 key->unit[i].texgen_mode2 =
273 key->unit[i].texgen_mode3 =
959 if (!p->state->unit[i].light_spotcutoff_is_180) {
981 if (p->state->unit[i].light_attenuated && !is_undef(dist)) {
995 if (!p->state->unit[i].light_spotcutoff_is_180) {
1062 if (p->state->unit[i].light_enabled)
1135 if (p->state->unit[i].light_enabled) {
1160 if (p->state->unit[i].light_enabled) {
1161 if (p->state->unit[i].light_eyepos3_is_zero)
1168 if (p->state->unit[i].light_enabled &&
1169 (!p->state->unit[i].light_spotcutoff_is_180 ||
1170 (p->state->unit[i].light_attenuated &&
1171 !p->state->unit[i].light_eyepos3_is_zero)))
1176 if (p->state->unit[i].light_enabled) {
1182 if (p->state->unit[i].light_eyepos3_is_zero) {
1216 } else if (p->state->unit[i].light_eyepos3_is_zero) {
1494 if (p->state->unit[i].coord_replace)
1497 if (p->state->unit[i].texgen_enabled ||
1498 p->state->unit[i].texmat_enabled) {
1500 GLuint texmat_enabled = p->state->unit[i].texmat_enabled;
1504 if (p->state->unit[i].texgen_enabled) {
1516 modes[0] = p->state->unit[i].texgen_mode0;
1517 modes[1] = p->state->unit[i].texgen_mode1;
1518 modes[2] = p->state->unit[i].texgen_mode2;
1519 modes[3] = p->state->unit[i].texgen_mode3;