Lines Matching defs:unit
41 _mesa_get_tex_unit(struct gl_context *ctx, GLuint unit)
43 assert(unit < ARRAY_SIZE(ctx->Texture.Unit));
44 return &(ctx->Texture.Unit[unit]);
48 * Return pointer to current texture unit.
49 * This the texture unit set by glActiveTexture(), not glClientActiveTexture().
59 * Return pointer to current fixed-func texture unit.
60 * This the texture unit set by glActiveTexture(), not glClientActiveTexture().
61 * \return NULL if the current unit is not a fixed-func texture unit
66 unsigned unit = ctx->Texture.CurrentUnit;
68 if (unit >= ARRAY_SIZE(ctx->Texture.FixedFuncUnit))
71 return &ctx->Texture.FixedFuncUnit[unit];
88 _mesa_print_texunit_state( struct gl_context *ctx, GLuint unit );