GLfloat param )void glPixelTransferi( GLenum pname,
GLint param )
pname | Type | Initial Value | Valid Range |
GL_MAP_COLOR | boolean | false | true/false |
GL_MAP_STENCIL | boolean | false | true/false |
GL_INDEX_SHIFT | integer | 0 | (-Infinity,Infinity) |
GL_INDEX_OFFSET | integer | 0 | (-Infinity,Infinity) |
GL_RED_SCALE | float | 1 | (-Infinity,Infinity) |
GL_GREEN_SCALE | float | 1 | (-Infinity,Infinity) |
GL_BLUE_SCALE | float | 1 | (-Infinity,Infinity) |
GL_ALPHA_SCALE | float | 1 | (-Infinity,Infinity) |
GL_DEPTH_SCALE | float | 1 | (-Infinity,Infinity) |
GL_RED_BIAS | float | 0 | (-Infinity,Infinity) |
GL_GREEN_BIAS | float | 0 | (-Infinity,Infinity) |
GL_BLUE_BIAS | float | 0 | (-Infinity,Infinity) |
GL_ALPHA_BIAS | float | 0 | (-Infinity,Infinity) |
GL_DEPTH_BIAS | float | 0 | (-Infinity,Infinity) |
GL_POST_COLOR_MATRIX_RED_SCALE | float | 1 | (-Infinity,Infinity) |
GL_POST_COLOR_MATRIX_GREEN_SCALE | float | 1 | (-Infinity,Infinity) |
GL_POST_COLOR_MATRIX_BLUE_SCALE | float | 1 | (-Infinity,Infinity) |
GL_POST_COLOR_MATRIX_ALPHA_SCALE | float | 1 | (-Infinity,Infinity) |
GL_POST_COLOR_MATRIX_RED_BIAS | float | 0 | (-Infinity,Infinity) |
GL_POST_COLOR_MATRIX_GREEN_BIAS | float | 0 | (-Infinity,Infinity) |
GL_POST_COLOR_MATRIX_BLUE_BIAS | float | 0 | (-Infinity,Infinity) |
GL_POST_COLOR_MATRIX_ALPHA_BIAS | float | 0 | (-Infinity,Infinity) |
GL_POST_CONVOLUTION_RED_SCALE | float | 1 | (-Infinity,Infinity) |
GL_POST_CONVOLUTION_GREEN_SCALE | float | 1 | (-Infinity,Infinity) |
GL_POST_CONVOLUTION_BLUE_SCALE | float | 1 | (-Infinity,Infinity) |
GL_POST_CONVOLUTION_ALPHA_SCALE | float | 1 | (-Infinity,Infinity) |
GL_POST_CONVOLUTION_RED_BIAS | float | 0 | (-Infinity,Infinity) |
GL_POST_CONVOLUTION_GREEN_BIAS | float | 0 | (-Infinity,Infinity) |
GL_POST_CONVOLUTION_BLUE_BIAS | float | 0 | (-Infinity,Infinity) |
GL_POST_CONVOLUTION_ALPHA_BIAS | float | 0 | (-Infinity,Infinity) |
glPixelTransferf can be used to set any pixel transfer parameter. If the parameter type is boolean, 0 implies false and any other value implies true. If pname is an integer parameter, param is rounded to the nearest integer. Likewise, glPixelTransferi can be used to set any of the pixel transfer parameters. Boolean parameters are set to false if param is 0 and to true otherwise. param is converted to floating point before being assigned to real-valued parameters.