Home | History | Annotate | Download | only in libGLESv2

Lines Matching refs:params

1101 bool Context::getBooleanv(GLenum pname, GLboolean *params)
1105 case GL_SHADER_COMPILER: *params = GL_TRUE; break;
1106 case GL_SAMPLE_COVERAGE_INVERT: *params = mState.sampleCoverageInvert; break;
1107 case GL_DEPTH_WRITEMASK: *params = mState.depthMask; break;
1109 params[0] = mState.colorMaskRed;
1110 params[1] = mState.colorMaskGreen;
1111 params[2] = mState.colorMaskBlue;
1112 params[3] = mState.colorMaskAlpha;
1114 case GL_CULL_FACE: *params = mState.cullFace; break;
1115 case GL_POLYGON_OFFSET_FILL: *params = mState.polygonOffsetFill; break;
1116 case GL_SAMPLE_ALPHA_TO_COVERAGE: *params = mState.sampleAlphaToCoverage; break;
1117 case GL_SAMPLE_COVERAGE: *params = mState.sampleCoverage; break;
1118 case GL_SCISSOR_TEST: *params = mState.scissorTest; break;
1119 case GL_STENCIL_TEST: *params = mState.stencilTest; break;
1120 case GL_DEPTH_TEST: *params = mState.depthTest; break;
1121 case GL_BLEND: *params = mState.blend; break;
1122 case GL_DITHER: *params = mState.dither; break;
1130 bool Context::getFloatv(GLenum pname, GLfloat *params)
1138 case GL_LINE_WIDTH: *params = mState.lineWidth; break;
1139 case GL_SAMPLE_COVERAGE_VALUE: *params = mState.sampleCoverageValue; break;
1140 case GL_DEPTH_CLEAR_VALUE: *params = mState.depthClearValue; break;
1141 case GL_POLYGON_OFFSET_FACTOR: *params = mState.polygonOffsetFactor; break;
1142 case GL_POLYGON_OFFSET_UNITS: *params = mState.polygonOffsetUnits; break;
1144 params[0] = gl::ALIASED_LINE_WIDTH_RANGE_MIN;
1145 params[1] = gl::ALIASED_LINE_WIDTH_RANGE_MAX;
1148 params[0] = gl::ALIASED_POINT_SIZE_RANGE_MIN;
1149 params[1] = supportsShaderModel3() ? gl::ALIASED_POINT_SIZE_RANGE_MAX_SM3 : gl::ALIASED_POINT_SIZE_RANGE_MAX_SM2;
1152 params[0] = mState.zNear;
1153 params[1] = mState.zFar;
1156 params[0] = mState.colorClearValue.red;
1157 params[1] = mState.colorClearValue.green;
1158 params[2] = mState.colorClearValue.blue;
1159 params[3] = mState.colorClearValue.alpha;
1162 params[0] = mState.blendColor.red;
1163 params[1] = mState.blendColor.green;
1164 params[2] = mState.blendColor.blue;
1165 params[3] = mState.blendColor.alpha;
1174 bool Context::getIntegerv(GLenum pname, GLint *params)
1183 case GL_MAX_VERTEX_ATTRIBS: *params = gl::MAX_VERTEX_ATTRIBS; break;
1184 case GL_MAX_VERTEX_UNIFORM_VECTORS: *params = gl::MAX_VERTEX_UNIFORM_VECTORS; break;
1185 case GL_MAX_VARYING_VECTORS: *params = getMaximumVaryingVectors(); break;
1186 case GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS: *params = gl::MAX_COMBINED_TEXTURE_IMAGE_UNITS; break;
1187 case GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS: *params = gl::MAX_VERTEX_TEXTURE_IMAGE_UNITS; break;
1188 case GL_MAX_TEXTURE_IMAGE_UNITS: *params
1189 case GL_MAX_FRAGMENT_UNIFORM_VECTORS: *params = getMaximumFragmentUniformVectors(); break;
1190 case GL_MAX_RENDERBUFFER_SIZE: *params = getMaximumRenderbufferDimension(); break;
1191 case GL_NUM_SHADER_BINARY_FORMATS: *params = 0; break;
1193 case GL_ARRAY_BUFFER_BINDING: *params = mState.arrayBuffer.id(); break;
1194 case GL_ELEMENT_ARRAY_BUFFER_BINDING: *params = mState.elementArrayBuffer.id(); break;
1196 case GL_DRAW_FRAMEBUFFER_BINDING_ANGLE: *params = mState.drawFramebuffer; break;
1197 case GL_READ_FRAMEBUFFER_BINDING_ANGLE: *params = mState.readFramebuffer; break;
1198 case GL_RENDERBUFFER_BINDING: *params = mState.renderbuffer.id(); break;
1199 case GL_CURRENT_PROGRAM: *params = mState.currentProgram; break;
1200 case GL_PACK_ALIGNMENT: *params = mState.packAlignment; break;
1201 case GL_UNPACK_ALIGNMENT: *params = mState.unpackAlignment; break;
1202 case GL_GENERATE_MIPMAP_HINT: *params = mState.generateMipmapHint; break;
1203 case GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES: *params = mState.fragmentShaderDerivativeHint; break;
1204 case GL_ACTIVE_TEXTURE: *params = (mState.activeSampler + GL_TEXTURE0); break;
1205 case GL_STENCIL_FUNC: *params = mState.stencilFunc; break;
1206 case GL_STENCIL_REF: *params = mState.stencilRef; break;
1207 case GL_STENCIL_VALUE_MASK: *params = mState.stencilMask; break;
1208 case GL_STENCIL_BACK_FUNC: *params = mState.stencilBackFunc; break;
1209 case GL_STENCIL_BACK_REF: *params = mState.stencilBackRef; break;
1210 case GL_STENCIL_BACK_VALUE_MASK: *params = mState.stencilBackMask; break;
1211 case GL_STENCIL_FAIL: *params = mState.stencilFail; break;
1212 case GL_STENCIL_PASS_DEPTH_FAIL: *params = mState.stencilPassDepthFail; break;
1213 case GL_STENCIL_PASS_DEPTH_PASS: *params = mState.stencilPassDepthPass; break;
1214 case GL_STENCIL_BACK_FAIL: *params = mState.stencilBackFail; break;
1215 case GL_STENCIL_BACK_PASS_DEPTH_FAIL: *params = mState.stencilBackPassDepthFail; break;
1216 case GL_STENCIL_BACK_PASS_DEPTH_PASS: *params = mState.stencilBackPassDepthPass; break;
1217 case GL_DEPTH_FUNC: *params = mState.depthFunc; break;
1218 case GL_BLEND_SRC_RGB: *params = mState.sourceBlendRGB; break;
1219 case GL_BLEND_SRC_ALPHA: *params = mState.sourceBlendAlpha; break;
1220 case GL_BLEND_DST_RGB: *params = mState.destBlendRGB; break;
1221 case GL_BLEND_DST_ALPHA: *params = mState.destBlendAlpha; break;
1222 case GL_BLEND_EQUATION_RGB: *params = mState.blendEquationRGB; break;
1223 case GL_BLEND_EQUATION_ALPHA: *params = mState.blendEquationAlpha; break;
1224 case GL_STENCIL_WRITEMASK: *params = mState.stencilWritemask; break;
1225 case GL_STENCIL_BACK_WRITEMASK: *params = mState.stencilBackWritemask; break;
1226 case GL_STENCIL_CLEAR_VALUE: *params = mState.stencilClearValue; break;
1227 case GL_SUBPIXEL_BITS: *params = 4; break;
1228 case GL_MAX_TEXTURE_SIZE: *params = getMaximumTextureDimension(); break;
1229 case GL_MAX_CUBE_MAP_TEXTURE_SIZE: *params = getMaximumCubeTextureDimension(); break;
1236 *params = 2;
1240 *params = 0;
1249 *params = maxSamples;
1269 *params = 1;
1273 *params = 0;
1277 *params = framebuffer->getSamples();
1283 *params = 0;
1287 case GL_IMPLEMENTATION_COLOR_READ_TYPE: *params = gl::IMPLEMENTATION_COLOR_READ_TYPE; break;
1288 case GL_IMPLEMENTATION_COLOR_READ_FORMAT: *params = gl::IMPLEMENTATION_COLOR_READ_FORMAT; break;
1292 params[0] = maxDimension;
1293 params[1] = maxDimension;
1300 params[0] = GL_COMPRESSED_RGB_S3TC_DXT1_EXT;
1301 params[1] = GL_COMPRESSED_RGBA_S3TC_DXT1_EXT;
1306 params[0] = mState.viewportX;
1307 params[1] = mState.viewportY;
1308 params[2] = mState.viewportWidth;
1309 params[3] = mState.viewportHeight;
1312 params[0] = mState.scissorX;
1313 params[1] = mState.scissorY;
1314 params[2] = mState.scissorWidth;
1315 params[3] = mState.scissorHeight;
1317 case GL_CULL_FACE_MODE: *params = mState.cullMode; break;
1318 case GL_FRONT_FACE: *params = mState.frontFace; break;
1331 case GL_RED_BITS: *params = colorbuffer->getRedSize(); break;
1332 case GL_GREEN_BITS: *params = colorbuffer->getGreenSize(); break;
1333 case GL_BLUE_BITS: *params = colorbuffer->getBlueSize(); break;
1334 case GL_ALPHA_BITS: *params = colorbuffer->getAlphaSize(); break;
1339 *params = 0;
1350 *params = depthbuffer->getDepthSize();
1354 *params = 0;
1365 *params = stencilbuffer->getStencilSize();
1369 *params = 0;
1381 *params = mState.samplerTexture[SAMPLER_2D][mState.activeSampler].id();
1392 *params = mState.samplerTexture[SAMPLER_CUBE][mState.activeSampler].id();