Lines Matching refs:pname
109 GLenum pname, GLenum mode) in set_combiner_mode() argument
128 pname == GL_COMBINE_RGB); in set_combiner_mode()
133 pname == GL_COMBINE_RGB); in set_combiner_mode()
150 switch (pname) { in set_combiner_mode()
165 TE_ERROR(GL_INVALID_ENUM, "glTexEnv(pname=%s)", pname); in set_combiner_mode()
178 GLenum pname, GLenum param) in set_combiner_source() argument
188 switch (pname) { in set_combiner_source()
193 term = pname - GL_SOURCE0_RGB; in set_combiner_source()
200 term = pname - GL_SOURCE0_ALPHA; in set_combiner_source()
204 TE_ERROR(GL_INVALID_ENUM, "glTexEnv(pname=%s)", pname); in set_combiner_source()
210 TE_ERROR(GL_INVALID_ENUM, "glTexEnv(pname=%s)", pname); in set_combiner_source()
270 GLenum pname, GLenum param) in set_combiner_operand() argument
277 switch (pname) { in set_combiner_operand()
282 term = pname - GL_OPERAND0_RGB; in set_combiner_operand()
289 term = pname - GL_OPERAND0_ALPHA; in set_combiner_operand()
293 TE_ERROR(GL_INVALID_ENUM, "glTexEnv(pname=%s)", pname); in set_combiner_operand()
299 TE_ERROR(GL_INVALID_ENUM, "glTexEnv(pname=%s)", pname); in set_combiner_operand()
353 GLenum pname, GLfloat scale) in set_combiner_scale() argument
372 switch (pname) { in set_combiner_scale()
386 TE_ERROR(GL_INVALID_ENUM, "glTexEnv(pname=%s)", pname); in set_combiner_scale()
396 GLenum pname, const GLfloat *param ) in _mesa_texenvfv_indexed() argument
401 maxUnit = (target == GL_POINT_SPRITE_NV && pname == GL_COORD_REPLACE_NV) in _mesa_texenvfv_indexed()
421 switch (pname) { in _mesa_texenvfv_indexed()
430 if (!set_combiner_mode(ctx, texUnit, pname, (GLenum) iparam0)) in _mesa_texenvfv_indexed()
441 if (!set_combiner_source(ctx, texUnit, pname, (GLenum) iparam0)) in _mesa_texenvfv_indexed()
452 if (!set_combiner_operand(ctx, texUnit, pname, (GLenum) iparam0)) in _mesa_texenvfv_indexed()
457 if (!set_combiner_scale(ctx, texUnit, pname, param[0])) in _mesa_texenvfv_indexed()
469 if (pname == GL_TEXTURE_LOD_BIAS_EXT) { in _mesa_texenvfv_indexed()
476 TE_ERROR(GL_INVALID_ENUM, "glTexEnv(pname=%s)", pname); in _mesa_texenvfv_indexed()
487 if (pname == GL_COORD_REPLACE_NV) { in _mesa_texenvfv_indexed()
507 _mesa_error( ctx, GL_INVALID_ENUM, "glTexEnv(pname=0x%x)", pname ); in _mesa_texenvfv_indexed()
520 _mesa_enum_to_string(pname), in _mesa_texenvfv_indexed()
526 ctx->Driver.TexEnv(ctx, target, pname, param); in _mesa_texenvfv_indexed()
532 _mesa_TexEnvfv( GLenum target, GLenum pname, const GLfloat *param ) in _mesa_TexEnvfv() argument
535 _mesa_texenvfv_indexed(ctx, ctx->Texture.CurrentUnit, target, pname, param); in _mesa_TexEnvfv()
540 _mesa_TexEnvf( GLenum target, GLenum pname, GLfloat param ) in _mesa_TexEnvf() argument
545 _mesa_TexEnvfv( target, pname, p ); in _mesa_TexEnvf()
550 _mesa_TexEnvi( GLenum target, GLenum pname, GLint param ) in _mesa_TexEnvi() argument
555 _mesa_TexEnvfv( target, pname, p ); in _mesa_TexEnvi()
560 _mesa_TexEnviv( GLenum target, GLenum pname, const GLint *param ) in _mesa_TexEnviv() argument
563 if (pname == GL_TEXTURE_ENV_COLOR) { in _mesa_TexEnviv()
573 _mesa_TexEnvfv( target, pname, p ); in _mesa_TexEnviv()
579 GLenum pname, GLfloat param ) in _mesa_MultiTexEnvfEXT() argument
585 _mesa_texenvfv_indexed(ctx, texunit - GL_TEXTURE0, target, pname, p); in _mesa_MultiTexEnvfEXT()
590 GLenum pname, const GLfloat *param ) in _mesa_MultiTexEnvfvEXT() argument
593 _mesa_texenvfv_indexed(ctx, texunit - GL_TEXTURE0, target, pname, param); in _mesa_MultiTexEnvfvEXT()
599 GLenum pname, GLint param ) in _mesa_MultiTexEnviEXT() argument
605 _mesa_texenvfv_indexed( ctx, texunit - GL_TEXTURE0, target, pname, p ); in _mesa_MultiTexEnviEXT()
611 GLenum pname, const GLint *param ) in _mesa_MultiTexEnvivEXT() argument
615 if (pname == GL_TEXTURE_ENV_COLOR) { in _mesa_MultiTexEnvivEXT()
625 _mesa_texenvfv_indexed( ctx, texunit - GL_TEXTURE0, target, pname, p ); in _mesa_MultiTexEnvivEXT()
638 GLenum pname) in get_texenvi() argument
640 switch (pname) { in get_texenvi()
651 const unsigned rgb_idx = pname - GL_SOURCE0_RGB; in get_texenvi()
665 const unsigned alpha_idx = pname - GL_SOURCE0_ALPHA; in get_texenvi()
679 const unsigned op_rgb = pname - GL_OPERAND0_RGB; in get_texenvi()
693 const unsigned op_alpha = pname - GL_OPERAND0_ALPHA; in get_texenvi()
718 _mesa_gettexenvfv_indexed( GLuint texunit, GLenum target, GLenum pname, GLfloat *params ) in _mesa_gettexenvfv_indexed() argument
723 maxUnit = (target == GL_POINT_SPRITE_NV && pname == GL_COORD_REPLACE_NV) in _mesa_gettexenvfv_indexed()
743 if (pname == GL_TEXTURE_ENV_COLOR) { in _mesa_gettexenvfv_indexed()
750 GLint val = get_texenvi(ctx, texUnit, pname); in _mesa_gettexenvfv_indexed()
759 if (pname == GL_TEXTURE_LOD_BIAS_EXT) { in _mesa_gettexenvfv_indexed()
774 if (pname == GL_COORD_REPLACE_NV) { in _mesa_gettexenvfv_indexed()
794 GLenum pname, GLint *params ) in _mesa_gettexenviv_indexed() argument
799 maxUnit = (target == GL_POINT_SPRITE_NV && pname == GL_COORD_REPLACE_NV) in _mesa_gettexenviv_indexed()
820 if (pname == GL_TEXTURE_ENV_COLOR) { in _mesa_gettexenviv_indexed()
827 GLint val = get_texenvi(ctx, texUnit, pname); in _mesa_gettexenviv_indexed()
836 if (pname == GL_TEXTURE_LOD_BIAS_EXT) { in _mesa_gettexenviv_indexed()
851 if (pname == GL_COORD_REPLACE_NV) { in _mesa_gettexenviv_indexed()
870 _mesa_GetTexEnvfv( GLenum target, GLenum pname, GLfloat *params ) in _mesa_GetTexEnvfv() argument
873 _mesa_gettexenvfv_indexed(ctx->Texture.CurrentUnit, target, pname, params); in _mesa_GetTexEnvfv()
879 GLenum pname, GLfloat *params ) in _mesa_GetMultiTexEnvfvEXT() argument
881 _mesa_gettexenvfv_indexed(texunit - GL_TEXTURE0, target, pname, params); in _mesa_GetMultiTexEnvfvEXT()
886 _mesa_GetTexEnviv( GLenum target, GLenum pname, GLint *params ) in _mesa_GetTexEnviv() argument
889 _mesa_gettexenviv_indexed(ctx->Texture.CurrentUnit, target, pname, params); in _mesa_GetTexEnviv()
895 GLenum pname, GLint *params ) in _mesa_GetMultiTexEnvivEXT() argument
897 _mesa_gettexenviv_indexed(texunit - GL_TEXTURE0, target, pname, params); in _mesa_GetMultiTexEnvivEXT()