Lines Matching defs:ctx
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]);
52 _mesa_get_current_tex_unit(struct gl_context *ctx)
54 return _mesa_get_tex_unit(ctx, ctx->Texture.CurrentUnit);
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];
74 _mesa_max_tex_unit(struct gl_context *ctx)
77 return MAX2(ctx->Const.MaxCombinedTextureImageUnits,
78 ctx->Const.MaxTextureCoordUnits);
86 _mesa_print_texunit_state( struct gl_context *ctx, GLuint unit );
95 _mesa_update_texture_matrices(struct gl_context *ctx);
98 _mesa_update_texture_state(struct gl_context *ctx);
101 _mesa_init_texture( struct gl_context *ctx );
104 _mesa_free_texture_data( struct gl_context *ctx );
107 _mesa_update_default_objects_texture(struct gl_context *ctx);