Home | History | Annotate | Download | only in main

Lines Matching refs:pname

108                   GLenum pname, GLenum mode)
127 pname == GL_COMBINE_RGB);
132 pname == GL_COMBINE_RGB);
143 pname == GL_COMBINE_RGB);
154 switch (pname) {
169 TE_ERROR(GL_INVALID_ENUM, "glTexEnv(pname=%s)", pname);
179 GLenum pname, GLenum param)
185 * Translate pname to (term, alpha).
189 switch (pname) {
194 term = pname - GL_SOURCE0_RGB;
201 term = pname - GL_SOURCE0_ALPHA;
205 TE_ERROR(GL_INVALID_ENUM, "glTexEnv(pname=%s)", pname);
211 TE_ERROR(GL_INVALID_ENUM, "glTexEnv(pname=%s)", pname);
269 GLenum pname, GLenum param)
276 switch (pname) {
281 term = pname - GL_OPERAND0_RGB;
288 term = pname - GL_OPERAND0_ALPHA;
292 TE_ERROR(GL_INVALID_ENUM, "glTexEnv(pname=%s)", pname);
298 TE_ERROR(GL_INVALID_ENUM, "glTexEnv(pname=%s)", pname);
350 GLenum pname, GLfloat scale)
369 switch (pname) {
383 TE_ERROR(GL_INVALID_ENUM, "glTexEnv(pname=%s)", pname);
390 _mesa_TexEnvfv( GLenum target, GLenum pname, const GLfloat *param )
399 maxUnit = (target == GL_POINT_SPRITE_NV && pname == GL_COORD_REPLACE_NV)
409 switch (pname) {
418 set_combiner_mode(ctx, texUnit, pname, (GLenum) iparam0);
428 set_combiner_source(ctx, texUnit, pname, (GLenum) iparam0);
438 set_combiner_operand(ctx, texUnit, pname, (GLenum) iparam0);
442 set_combiner_scale(ctx, texUnit, pname, param[0]);
446 _mesa_error( ctx, GL_INVALID_ENUM, "glTexEnv(pname=0x%x)", pname );
465 _mesa_error( ctx, GL_INVALID_ENUM, "glTexEnv(pname)" );
470 if (pname == GL_TEXTURE_LOD_BIAS_EXT) {
477 TE_ERROR(GL_INVALID_ENUM, "glTexEnv(pname=%s)", pname);
488 if (pname == GL_COORD_REPLACE_NV) {
505 _mesa_error( ctx, GL_INVALID_ENUM, "glTexEnv(pname=0x%x)", pname );
517 _mesa_lookup_enum_by_nr(pname),
523 (*ctx->Driver.TexEnv)( ctx, target, pname, param );
529 _mesa_TexEnvf( GLenum target, GLenum pname, GLfloat param )
534 _mesa_TexEnvfv( target, pname, p );
540 _mesa_TexEnvi( GLenum target, GLenum pname, GLint param )
545 _mesa_TexEnvfv( target, pname, p );
550 _mesa_TexEnviv( GLenum target, GLenum pname, const GLint *param )
553 if (pname == GL_TEXTURE_ENV_COLOR) {
563 _mesa_TexEnvfv( target, pname, p );
570 * \return value of queried pname or -1 if error.
574 GLenum pname)
576 switch (pname) {
587 const unsigned rgb_idx = pname - GL_SOURCE0_RGB;
595 _mesa_error(ctx, GL_INVALID_ENUM, "glGetTexEnvfv(pname)");
601 pname - GL_SOURCE0_ALPHA;
609 _mesa_error(ctx, GL_INVALID_ENUM, "glGetTexEnvfv(pname)");
615 const unsigned op_rgb = pname - GL_OPERAND0_RGB;
623 _mesa_error(ctx, GL_INVALID_ENUM, "glGetTexEnvfv(pname)");
629 const unsigned op_alpha = pname - GL_OPERAND0_ALPHA;
637 _mesa_error(ctx, GL_INVALID_ENUM, "glGetTexEnvfv(pname)");
650 _mesa_error(ctx, GL_INVALID_ENUM, "glGetTexEnvfv(pname)");
655 _mesa_error(ctx, GL_INVALID_ENUM, "glGetTexEnvfv(pname)");
665 _mesa_GetTexEnvfv( GLenum target, GLenum pname, GLfloat *params )
672 maxUnit = (target == GL_POINT_SPRITE_NV && pname == GL_COORD_REPLACE_NV)
682 if (pname == GL_TEXTURE_ENV_COLOR) {
691 GLint val = get_texenvi(ctx, texUnit, pname);
698 if (pname == GL_TEXTURE_LOD_BIAS_EXT) {
702 _mesa_error( ctx, GL_INVALID_ENUM, "glGetTexEnvfv(pname)" );
713 if (pname == GL_COORD_REPLACE_NV) {
717 _mesa_error( ctx, GL_INVALID_ENUM, "glGetTexEnvfv(pname)" );
729 _mesa_GetTexEnviv( GLenum target, GLenum pname, GLint *params )
736 maxUnit = (target == GL_POINT_SPRITE_NV && pname == GL_COORD_REPLACE_NV)
746 if (pname == GL_TEXTURE_ENV_COLOR) {
753 GLint val = get_texenvi(ctx, texUnit, pname);
760 if (pname == GL_TEXTURE_LOD_BIAS_EXT) {
764 _mesa_error( ctx, GL_INVALID_ENUM, "glGetTexEnviv(pname)" );
775 if (pname == GL_COORD_REPLACE_NV) {
779 _mesa_error( ctx, GL_INVALID_ENUM, "glGetTexEnviv(pname)" );
795 _mesa_TexBumpParameterivATI( GLenum pname, const GLint *param )
809 if (pname == GL_BUMP_ROT_MATRIX_ATI) {
820 _mesa_TexBumpParameterfvATI( pname, p );
825 _mesa_TexBumpParameterfvATI( GLenum pname, const GLfloat *param )
838 if (pname == GL_BUMP_ROT_MATRIX_ATI) {
845 _mesa_error( ctx, GL_INVALID_ENUM, "glTexBumpParameter(pname)" );
851 (*ctx->Driver.TexEnv)( ctx, 0, pname, param );
857 _mesa_GetTexBumpParameterivATI( GLenum pname, GLint *param )
871 if (pname == GL_BUMP_ROT_MATRIX_SIZE_ATI) {
878 else if (pname == GL_BUMP_ROT_MATRIX_ATI) {
885 else if (pname == GL_BUMP_NUM_TEX_UNITS_ATI) {
894 else if (pname == GL_BUMP_TEX_UNITS_ATI) {
902 _mesa_error( ctx, GL_INVALID_ENUM, "glGetTexBumpParameter(pname)" );
909 _mesa_GetTexBumpParameterfvATI( GLenum pname, GLfloat *param )
923 if (pname == GL_BUMP_ROT_MATRIX_SIZE_ATI) {
929 else if (pname == GL_BUMP_ROT_MATRIX_ATI) {
935 else if (pname == GL_BUMP_NUM_TEX_UNITS_ATI) {
944 else if (pname == GL_BUMP_TEX_UNITS_ATI) {
952 _mesa_error( ctx, GL_INVALID_ENUM, "glGetTexBumpParameter(pname)" );