DPEXPORT void glClientActiveTexture( GLenum _texture ) { glClientActiveTexture_( _texture ); }
static void tex_env_conf(const struct tex_env *env, int enable) { size_t i; for (i = 0; i < env->count; i++) { const struct tex_stage *st = &env->stages[i]; glActiveTexture_(st->unit); glClientActiveTexture_(st->unit); env->conf(st->stage, enable); } /* Last stage remains selected. */ }
/* * Select stage of the current texture pipeline. */ int tex_env_stage(int stage) { size_t i; if (curr_tex_env) { for (i = 0; i < curr_tex_env->count; i++) { const struct tex_stage *st = &curr_tex_env->stages[i]; if (st->stage == stage) { glActiveTexture_(st->unit); glClientActiveTexture_(st->unit); return 1; } } } return 0; }