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
64 _mesa_get_fixedfunc_tex_unit(struct gl_context *ctx, GLuint unit)
66 if (unit >= ARRAY_SIZE(ctx->Texture.FixedFuncUnit))
69 return &ctx->Texture.FixedFuncUnit[unit];
86 _mesa_print_texunit_state( struct gl_context *ctx, GLuint unit );