Lines Matching refs:mState
55 mState.depthClearValue = 1.0f; in Context()
56 mState.stencilClearValue = 0; in Context()
58 mState.cullFaceEnabled = false; in Context()
59 mState.cullMode = GL_BACK; in Context()
60 mState.frontFace = GL_CCW; in Context()
61 mState.depthTestEnabled = false; in Context()
62 mState.depthFunc = GL_LESS; in Context()
63 mState.blendEnabled = false; in Context()
64 mState.sourceBlendRGB = GL_ONE; in Context()
65 mState.sourceBlendAlpha = GL_ONE; in Context()
66 mState.destBlendRGB = GL_ZERO; in Context()
67 mState.destBlendAlpha = GL_ZERO; in Context()
68 mState.blendEquationRGB = GL_FUNC_ADD_OES; in Context()
69 mState.blendEquationAlpha = GL_FUNC_ADD_OES; in Context()
70 mState.stencilTestEnabled = false; in Context()
71 mState.stencilFunc = GL_ALWAYS; in Context()
72 mState.stencilRef = 0; in Context()
73 mState.stencilMask = -1; in Context()
74 mState.stencilWritemask = -1; in Context()
75 mState.stencilFail = GL_KEEP; in Context()
76 mState.stencilPassDepthFail = GL_KEEP; in Context()
77 mState.stencilPassDepthPass = GL_KEEP; in Context()
78 mState.polygonOffsetFillEnabled = false; in Context()
79 mState.polygonOffsetFactor = 0.0f; in Context()
80 mState.polygonOffsetUnits = 0.0f; in Context()
81 mState.sampleAlphaToCoverageEnabled = false; in Context()
82 mState.sampleCoverageEnabled = false; in Context()
83 mState.sampleCoverageValue = 1.0f; in Context()
84 mState.sampleCoverageInvert = false; in Context()
85 mState.scissorTestEnabled = false; in Context()
86 mState.ditherEnabled = true; in Context()
87 mState.shadeModel = GL_SMOOTH; in Context()
88 mState.generateMipmapHint = GL_DONT_CARE; in Context()
89 mState.perspectiveCorrectionHint = GL_DONT_CARE; in Context()
90 mState.fogHint = GL_DONT_CARE; in Context()
92 mState.lineWidth = 1.0f; in Context()
94 mState.viewportX = 0; in Context()
95 mState.viewportY = 0; in Context()
96 mState.viewportWidth = 0; in Context()
97 mState.viewportHeight = 0; in Context()
98 mState.zNear = 0.0f; in Context()
99 mState.zFar = 1.0f; in Context()
101 mState.scissorX = 0; in Context()
102 mState.scissorY = 0; in Context()
103 mState.scissorWidth = 0; in Context()
104 mState.scissorHeight = 0; in Context()
106 mState.colorMaskRed = true; in Context()
107 mState.colorMaskGreen = true; in Context()
108 mState.colorMaskBlue = true; in Context()
109 mState.colorMaskAlpha = true; in Context()
110 mState.depthMask = true; in Context()
114 mState.textureUnit[i].color = {0, 0, 0, 0}; in Context()
115 mState.textureUnit[i].environmentMode = GL_MODULATE; in Context()
116 mState.textureUnit[i].combineRGB = GL_MODULATE; in Context()
117 mState.textureUnit[i].combineAlpha = GL_MODULATE; in Context()
118 mState.textureUnit[i].src0RGB = GL_TEXTURE; in Context()
119 mState.textureUnit[i].src1RGB = GL_PREVIOUS; in Context()
120 mState.textureUnit[i].src2RGB = GL_CONSTANT; in Context()
121 mState.textureUnit[i].src0Alpha = GL_TEXTURE; in Context()
122 mState.textureUnit[i].src1Alpha = GL_PREVIOUS; in Context()
123 mState.textureUnit[i].src2Alpha = GL_CONSTANT; in Context()
124 mState.textureUnit[i].operand0RGB = GL_SRC_COLOR; in Context()
125 mState.textureUnit[i].operand1RGB = GL_SRC_COLOR; in Context()
126 mState.textureUnit[i].operand2RGB = GL_SRC_ALPHA; in Context()
127 mState.textureUnit[i].operand0Alpha = GL_SRC_ALPHA; in Context()
128 mState.textureUnit[i].operand1Alpha = GL_SRC_ALPHA; in Context()
129 mState.textureUnit[i].operand2Alpha = GL_SRC_ALPHA; in Context()
151 mState.activeSampler = 0; in Context()
163 mState.packAlignment = 4; in Context()
164 mState.unpackAlignment = 4; in Context()
266 mState.samplerTexture[type][sampler] = nullptr; in ~Context()
272 mState.vertexAttribute[i].mBoundBuffer = nullptr; in ~Context()
275 mState.arrayBuffer = nullptr; in ~Context()
276 mState.elementArrayBuffer = nullptr; in ~Context()
277 mState.renderbuffer = nullptr; in ~Context()
293 mState.viewportX = 0; in makeCurrent()
294 mState.viewportY = 0; in makeCurrent()
295 mState.viewportWidth = surface ? surface->getWidth() : 0; in makeCurrent()
296 mState.viewportHeight = surface ? surface->getHeight() : 0; in makeCurrent()
298 mState.scissorX = 0; in makeCurrent()
299 mState.scissorY = 0; in makeCurrent()
300 mState.scissorWidth = surface ? surface->getWidth() : 0; in makeCurrent()
301 mState.scissorHeight = surface ? surface->getHeight() : 0; in makeCurrent()
354 mState.colorClearValue.red = red; in setClearColor()
355 mState.colorClearValue.green = green; in setClearColor()
356 mState.colorClearValue.blue = blue; in setClearColor()
357 mState.colorClearValue.alpha = alpha; in setClearColor()
362 mState.depthClearValue = depth; in setClearDepth()
367 mState.stencilClearValue = stencil; in setClearStencil()
372 mState.cullFaceEnabled = enabled; in setCullFaceEnabled()
377 return mState.cullFaceEnabled; in isCullFaceEnabled()
382 mState.cullMode = mode; in setCullMode()
387 if(mState.frontFace != front) in setFrontFace()
389 mState.frontFace = front; in setFrontFace()
396 if(mState.depthTestEnabled != enabled) in setDepthTestEnabled()
398 mState.depthTestEnabled = enabled; in setDepthTestEnabled()
405 return mState.depthTestEnabled; in isDepthTestEnabled()
410 if(mState.depthFunc != depthFunc) in setDepthFunc()
412 mState.depthFunc = depthFunc; in setDepthFunc()
419 mState.zNear = zNear; in setDepthRange()
420 mState.zFar = zFar; in setDepthRange()
441 if(mState.blendEnabled != enabled) in setBlendEnabled()
443 mState.blendEnabled = enabled; in setBlendEnabled()
450 return mState.blendEnabled; in isBlendEnabled()
455 if(mState.sourceBlendRGB != sourceRGB || in setBlendFactors()
456 mState.sourceBlendAlpha != sourceAlpha || in setBlendFactors()
457 mState.destBlendRGB != destRGB || in setBlendFactors()
458 mState.destBlendAlpha != destAlpha) in setBlendFactors()
460 mState.sourceBlendRGB = sourceRGB; in setBlendFactors()
461 mState.destBlendRGB = destRGB; in setBlendFactors()
462 mState.sourceBlendAlpha = sourceAlpha; in setBlendFactors()
463 mState.destBlendAlpha = destAlpha; in setBlendFactors()
470 if(mState.blendEquationRGB != rgbEquation || in setBlendEquation()
471 mState.blendEquationAlpha != alphaEquation) in setBlendEquation()
473 mState.blendEquationRGB = rgbEquation; in setBlendEquation()
474 mState.blendEquationAlpha = alphaEquation; in setBlendEquation()
481 if(mState.stencilTestEnabled != enabled) in setStencilTestEnabled()
483 mState.stencilTestEnabled = enabled; in setStencilTestEnabled()
490 return mState.stencilTestEnabled; in isStencilTestEnabled()
495 if(mState.stencilFunc != stencilFunc || in setStencilParams()
496 mState.stencilRef != stencilRef || in setStencilParams()
497 mState.stencilMask != stencilMask) in setStencilParams()
499 mState.stencilFunc = stencilFunc; in setStencilParams()
500 mState.stencilRef = (stencilRef > 0) ? stencilRef : 0; in setStencilParams()
501 mState.stencilMask = stencilMask; in setStencilParams()
508 if(mState.stencilWritemask != stencilWritemask) in setStencilWritemask()
510 mState.stencilWritemask = stencilWritemask; in setStencilWritemask()
517 if(mState.stencilFail != stencilFail || in setStencilOperations()
518 mState.stencilPassDepthFail != stencilPassDepthFail || in setStencilOperations()
519 mState.stencilPassDepthPass != stencilPassDepthPass) in setStencilOperations()
521 mState.stencilFail = stencilFail; in setStencilOperations()
522 mState.stencilPassDepthFail = stencilPassDepthFail; in setStencilOperations()
523 mState.stencilPassDepthPass = stencilPassDepthPass; in setStencilOperations()
530 if(mState.polygonOffsetFillEnabled != enabled) in setPolygonOffsetFillEnabled()
532 mState.polygonOffsetFillEnabled = enabled; in setPolygonOffsetFillEnabled()
539 return mState.polygonOffsetFillEnabled; in isPolygonOffsetFillEnabled()
544 if(mState.polygonOffsetFactor != factor || in setPolygonOffsetParams()
545 mState.polygonOffsetUnits != units) in setPolygonOffsetParams()
547 mState.polygonOffsetFactor = factor; in setPolygonOffsetParams()
548 mState.polygonOffsetUnits = units; in setPolygonOffsetParams()
555 if(mState.sampleAlphaToCoverageEnabled != enabled) in setSampleAlphaToCoverageEnabled()
557 mState.sampleAlphaToCoverageEnabled = enabled; in setSampleAlphaToCoverageEnabled()
564 return mState.sampleAlphaToCoverageEnabled; in isSampleAlphaToCoverageEnabled()
569 if(mState.sampleCoverageEnabled != enabled) in setSampleCoverageEnabled()
571 mState.sampleCoverageEnabled = enabled; in setSampleCoverageEnabled()
578 return mState.sampleCoverageEnabled; in isSampleCoverageEnabled()
583 if(mState.sampleCoverageValue != value || in setSampleCoverageParams()
584 mState.sampleCoverageInvert != invert) in setSampleCoverageParams()
586 mState.sampleCoverageValue = value; in setSampleCoverageParams()
587 mState.sampleCoverageInvert = invert; in setSampleCoverageParams()
594 mState.scissorTestEnabled = enabled; in setScissorTestEnabled()
599 return mState.scissorTestEnabled; in isScissorTestEnabled()
604 mState.shadeModel = mode; in setShadeModel()
609 if(mState.ditherEnabled != enabled) in setDitherEnabled()
611 mState.ditherEnabled = enabled; in setDitherEnabled()
618 return mState.ditherEnabled; in isDitherEnabled()
784 texture2Denabled[mState.activeSampler] = enable; in setTexture2Denabled()
789 return texture2Denabled[mState.activeSampler]; in isTexture2Denabled()
794 textureExternalEnabled[mState.activeSampler] = enable; in setTextureExternalEnabled()
799 return textureExternalEnabled[mState.activeSampler]; in isTextureExternalEnabled()
804 mState.lineWidth = width; in setLineWidth()
810 mState.generateMipmapHint = hint; in setGenerateMipmapHint()
815 mState.perspectiveCorrectionHint = hint; in setPerspectiveCorrectionHint()
820 mState.fogHint = hint; in setFogHint()
825 mState.viewportX = x; in setViewportParams()
826 mState.viewportY = y; in setViewportParams()
827 mState.viewportWidth = width; in setViewportParams()
828 mState.viewportHeight = height; in setViewportParams()
833 mState.scissorX = x; in setScissorParams()
834 mState.scissorY = y; in setScissorParams()
835 mState.scissorWidth = width; in setScissorParams()
836 mState.scissorHeight = height; in setScissorParams()
841 if(mState.colorMaskRed != red || mState.colorMaskGreen != green || in setColorMask()
842 mState.colorMaskBlue != blue || mState.colorMaskAlpha != alpha) in setColorMask()
844 mState.colorMaskRed = red; in setColorMask()
845 mState.colorMaskGreen = green; in setColorMask()
846 mState.colorMaskBlue = blue; in setColorMask()
847 mState.colorMaskAlpha = alpha; in setColorMask()
854 if(mState.depthMask != mask) in setDepthMask()
856 mState.depthMask = mask; in setDepthMask()
863 mState.activeSampler = active; in setActiveSampler()
868 return mState.framebuffer; in getFramebufferName()
873 return mState.renderbuffer.name(); in getRenderbufferName()
878 return mState.arrayBuffer.name(); in getArrayBufferName()
883 mState.vertexAttribute[attribNum].mArrayEnabled = enabled; in setVertexAttribArrayEnabled()
888 return mState.vertexAttribute[attribNum]; in getVertexAttribState()
894 mState.vertexAttribute[attribNum].mBoundBuffer = boundBuffer; in setVertexAttribState()
895 mState.vertexAttribute[attribNum].mSize = size; in setVertexAttribState()
896 mState.vertexAttribute[attribNum].mType = type; in setVertexAttribState()
897 mState.vertexAttribute[attribNum].mNormalized = normalized; in setVertexAttribState()
898 mState.vertexAttribute[attribNum].mStride = stride; in setVertexAttribState()
899 mState.vertexAttribute[attribNum].mPointer = pointer; in setVertexAttribState()
904 return mState.vertexAttribute[attribNum].mPointer; in getVertexAttribPointer()
909 return mState.vertexAttribute; in getVertexAttributes()
914 mState.packAlignment = alignment; in setPackAlignment()
919 return mState.packAlignment; in getPackAlignment()
924 mState.unpackAlignment = alignment; in setUnpackAlignment()
929 return mState.unpackAlignment; in getUnpackAlignment()
1003 return getFramebuffer(mState.framebuffer); in getFramebuffer()
1010 mState.arrayBuffer = getBuffer(buffer); in bindArrayBuffer()
1017 mState.elementArrayBuffer = getBuffer(buffer); in bindElementArrayBuffer()
1024 mState.samplerTexture[type][mState.activeSampler] = getTexture(texture); in bindTexture()
1034 mState.framebuffer = framebuffer; in bindFramebuffer()
1041 mState.renderbuffer = getRenderbuffer(renderbuffer); in bindRenderbuffer()
1052 Renderbuffer *renderbufferObject = mState.renderbuffer; in setRenderbufferStorage()
1063 return mState.arrayBuffer; in getArrayBuffer()
1068 return mState.elementArrayBuffer; in getElementArrayBuffer()
1073 return static_cast<Texture2D*>(getSamplerTexture(mState.activeSampler, TEXTURE_2D)); in getTexture2D()
1078 return static_cast<TextureExternal*>(getSamplerTexture(mState.activeSampler, TEXTURE_EXTERNAL)); in getTextureExternal()
1083 GLuint texid = mState.samplerTexture[type][sampler].name(); in getSamplerTexture()
1095 return mState.samplerTexture[type][sampler]; in getSamplerTexture()
1102 case GL_SAMPLE_COVERAGE_INVERT: *params = mState.sampleCoverageInvert; break; in getBooleanv()
1103 case GL_DEPTH_WRITEMASK: *params = mState.depthMask; break; in getBooleanv()
1105 params[0] = mState.colorMaskRed; in getBooleanv()
1106 params[1] = mState.colorMaskGreen; in getBooleanv()
1107 params[2] = mState.colorMaskBlue; in getBooleanv()
1108 params[3] = mState.colorMaskAlpha; in getBooleanv()
1110 case GL_CULL_FACE: *params = mState.cullFaceEnabled; break; in getBooleanv()
1111 case GL_POLYGON_OFFSET_FILL: *params = mState.polygonOffsetFillEnabled; break; in getBooleanv()
1112 case GL_SAMPLE_ALPHA_TO_COVERAGE: *params = mState.sampleAlphaToCoverageEnabled; break; in getBooleanv()
1113 case GL_SAMPLE_COVERAGE: *params = mState.sampleCoverageEnabled; break; in getBooleanv()
1114 case GL_SCISSOR_TEST: *params = mState.scissorTestEnabled; break; in getBooleanv()
1115 case GL_STENCIL_TEST: *params = mState.stencilTestEnabled; break; in getBooleanv()
1116 case GL_DEPTH_TEST: *params = mState.depthTestEnabled; break; in getBooleanv()
1117 case GL_BLEND: *params = mState.blendEnabled; break; in getBooleanv()
1118 case GL_DITHER: *params = mState.ditherEnabled; break; in getBooleanv()
1135 case GL_LINE_WIDTH: *params = mState.lineWidth; break; in getFloatv()
1136 case GL_SAMPLE_COVERAGE_VALUE: *params = mState.sampleCoverageValue; break; in getFloatv()
1137 case GL_DEPTH_CLEAR_VALUE: *params = mState.depthClearValue; break; in getFloatv()
1138 case GL_POLYGON_OFFSET_FACTOR: *params = mState.polygonOffsetFactor; break; in getFloatv()
1139 case GL_POLYGON_OFFSET_UNITS: *params = mState.polygonOffsetUnits; break; in getFloatv()
1157 params[0] = mState.zNear; in getFloatv()
1158 params[1] = mState.zFar; in getFloatv()
1161 params[0] = mState.colorClearValue.red; in getFloatv()
1162 params[1] = mState.colorClearValue.green; in getFloatv()
1163 params[2] = mState.colorClearValue.blue; in getFloatv()
1164 params[3] = mState.colorClearValue.alpha; in getFloatv()
1184 params[i] = mState.vertexAttribute[sw::Color0].mCurrentValue[i]; in getFloatv()
1190 params[i] = mState.vertexAttribute[sw::Normal].mCurrentValue[i]; in getFloatv()
1196 params[i] = mState.vertexAttribute[sw::TexCoord0].mCurrentValue[i]; in getFloatv()
1215 case GL_ARRAY_BUFFER_BINDING: *params = mState.arrayBuffer.name(); break; in getIntegerv()
1216 case GL_ELEMENT_ARRAY_BUFFER_BINDING: *params = mState.elementArrayBuffer.name(); break; in getIntegerv()
1217 case GL_FRAMEBUFFER_BINDING_OES: *params = mState.framebuffer; break; in getIntegerv()
1218 case GL_RENDERBUFFER_BINDING_OES: *params = mState.renderbuffer.name(); break; in getIntegerv()
1219 case GL_PACK_ALIGNMENT: *params = mState.packAlignment; break; in getIntegerv()
1220 case GL_UNPACK_ALIGNMENT: *params = mState.unpackAlignment; break; in getIntegerv()
1221 case GL_GENERATE_MIPMAP_HINT: *params = mState.generateMipmapHint; break; in getIntegerv()
1222 case GL_PERSPECTIVE_CORRECTION_HINT: *params = mState.perspectiveCorrectionHint; break; in getIntegerv()
1223 case GL_ACTIVE_TEXTURE: *params = (mState.activeSampler + GL_TEXTURE0); break; in getIntegerv()
1224 case GL_STENCIL_FUNC: *params = mState.stencilFunc; break; in getIntegerv()
1225 case GL_STENCIL_REF: *params = mState.stencilRef; break; in getIntegerv()
1226 case GL_STENCIL_VALUE_MASK: *params = mState.stencilMask; break; in getIntegerv()
1227 case GL_STENCIL_FAIL: *params = mState.stencilFail; break; in getIntegerv()
1228 case GL_STENCIL_PASS_DEPTH_FAIL: *params = mState.stencilPassDepthFail; break; in getIntegerv()
1229 case GL_STENCIL_PASS_DEPTH_PASS: *params = mState.stencilPassDepthPass; break; in getIntegerv()
1230 case GL_DEPTH_FUNC: *params = mState.depthFunc; break; in getIntegerv()
1231 case GL_BLEND_SRC_RGB_OES: *params = mState.sourceBlendRGB; break; in getIntegerv()
1232 case GL_BLEND_SRC_ALPHA_OES: *params = mState.sourceBlendAlpha; break; in getIntegerv()
1233 case GL_BLEND_DST_RGB_OES: *params = mState.destBlendRGB; break; in getIntegerv()
1234 case GL_BLEND_DST_ALPHA_OES: *params = mState.destBlendAlpha; break; in getIntegerv()
1235 case GL_BLEND_EQUATION_RGB_OES: *params = mState.blendEquationRGB; break; in getIntegerv()
1236 case GL_BLEND_EQUATION_ALPHA_OES: *params = mState.blendEquationAlpha; break; in getIntegerv()
1237 case GL_STENCIL_WRITEMASK: *params = mState.stencilWritemask; break; in getIntegerv()
1238 case GL_STENCIL_CLEAR_VALUE: *params = mState.stencilClearValue; break; in getIntegerv()
1315 params[0] = mState.viewportX; in getIntegerv()
1316 params[1] = mState.viewportY; in getIntegerv()
1317 params[2] = mState.viewportWidth; in getIntegerv()
1318 params[3] = mState.viewportHeight; in getIntegerv()
1321 params[0] = mState.scissorX; in getIntegerv()
1322 params[1] = mState.scissorY; in getIntegerv()
1323 params[2] = mState.scissorWidth; in getIntegerv()
1324 params[3] = mState.scissorHeight; in getIntegerv()
1326 case GL_CULL_FACE_MODE: *params = mState.cullMode; break; in getIntegerv()
1327 case GL_FRONT_FACE: *params = mState.frontFace; break; in getIntegerv()
1382 …case GL_TEXTURE_BINDING_2D: *params = mState.samplerTexture[TEXTURE_2D][mState.ac… in getIntegerv()
1383 …se GL_TEXTURE_BINDING_EXTERNAL_OES: *params = mState.samplerTexture[TEXTURE_EXTERNAL][mStat… in getIntegerv()
1390 …case GL_POINT_SIZE_ARRAY_TYPE_OES: *params = mState.vertexAttribute[sw::PointSize].mType… in getIntegerv()
1391 …case GL_POINT_SIZE_ARRAY_STRIDE_OES: *params = mState.vertexAttribute[sw::PointSize].mStri… in getIntegerv()
1392 …case GL_POINT_SIZE_ARRAY_BUFFER_BINDING_OES: *params = mState.vertexAttribute[sw::PointSize].mBoun… in getIntegerv()
1393 …case GL_VERTEX_ARRAY_SIZE: *params = mState.vertexAttribute[sw::Position].mSize;… in getIntegerv()
1394 …case GL_VERTEX_ARRAY_TYPE: *params = mState.vertexAttribute[sw::Position].mType;… in getIntegerv()
1395 …case GL_VERTEX_ARRAY_STRIDE: *params = mState.vertexAttribute[sw::Position].mStrid… in getIntegerv()
1396 …case GL_VERTEX_ARRAY_BUFFER_BINDING: *params = mState.vertexAttribute[sw::Position].mBound… in getIntegerv()
1397 …case GL_NORMAL_ARRAY_TYPE: *params = mState.vertexAttribute[sw::Normal].mType; … in getIntegerv()
1398 …case GL_NORMAL_ARRAY_STRIDE: *params = mState.vertexAttribute[sw::Normal].mStride;… in getIntegerv()
1399 …case GL_NORMAL_ARRAY_BUFFER_BINDING: *params = mState.vertexAttribute[sw::Normal].mBoundBu… in getIntegerv()
1400 …case GL_COLOR_ARRAY_SIZE: *params = mState.vertexAttribute[sw::Color0].mSize; … in getIntegerv()
1401 …case GL_COLOR_ARRAY_TYPE: *params = mState.vertexAttribute[sw::Color0].mType; … in getIntegerv()
1402 …case GL_COLOR_ARRAY_STRIDE: *params = mState.vertexAttribute[sw::Color0].mStride;… in getIntegerv()
1403 …case GL_COLOR_ARRAY_BUFFER_BINDING: *params = mState.vertexAttribute[sw::Color0].mBoundBu… in getIntegerv()
1404 …ase GL_TEXTURE_COORD_ARRAY_SIZE: *params = mState.vertexAttribute[sw::TexCoord0 + mStat… in getIntegerv()
1405 …ase GL_TEXTURE_COORD_ARRAY_TYPE: *params = mState.vertexAttribute[sw::TexCoord0 + mStat… in getIntegerv()
1406 …ase GL_TEXTURE_COORD_ARRAY_STRIDE: *params = mState.vertexAttribute[sw::TexCoord0 + mStat… in getIntegerv()
1407 …ase GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING: *params = mState.vertexAttribute[sw::TexCoord0 + mStat… in getIntegerv()
1419 …case GL_VERTEX_ARRAY_POINTER: *params = mState.vertexAttribute[sw::Position].mPointer; … in getPointerv()
1420 …case GL_NORMAL_ARRAY_POINTER: *params = mState.vertexAttribute[sw::Normal].mPointer; … in getPointerv()
1421 …case GL_COLOR_ARRAY_POINTER: *params = mState.vertexAttribute[sw::Color0].mPointer; … in getPointerv()
1422 …case GL_POINT_SIZE_ARRAY_POINTER_OES: *params = mState.vertexAttribute[sw::PointSize].mPointer; … in getPointerv()
1423 …case GL_TEXTURE_COORD_ARRAY_POINTER: *params = mState.vertexAttribute[sw::TexCoord0 + mState.acti… in getPointerv()
1752 float zNear = clamp01(mState.zNear); in applyRenderTarget()
1753 float zFar = clamp01(mState.zFar); in applyRenderTarget()
1755 viewport.x0 = mState.viewportX; in applyRenderTarget()
1756 viewport.y0 = mState.viewportY; in applyRenderTarget()
1757 viewport.width = mState.viewportWidth; in applyRenderTarget()
1758 viewport.height = mState.viewportHeight; in applyRenderTarget()
1764 if(mState.scissorTestEnabled) in applyRenderTarget()
1766 …sw::Rect scissor = {mState.scissorX, mState.scissorY, mState.scissorX + mState.scissorWidth, mStat… in applyRenderTarget()
1784 bool frontFaceCCW = (mState.frontFace == GL_CCW); in applyState()
1786 if(mState.cullFaceEnabled) in applyState()
1788 device->setCullMode(es2sw::ConvertCullMode(mState.cullMode, mState.frontFace), frontFaceCCW); in applyState()
1797 if(mState.depthTestEnabled) in applyState()
1800 device->setDepthCompare(es2sw::ConvertDepthComparison(mState.depthFunc)); in applyState()
1812 if(mState.blendEnabled) in applyState()
1817 device->setSourceBlendFactor(es2sw::ConvertBlendFunc(mState.sourceBlendRGB)); in applyState()
1818 device->setDestBlendFactor(es2sw::ConvertBlendFunc(mState.destBlendRGB)); in applyState()
1819 device->setBlendOperation(es2sw::ConvertBlendOp(mState.blendEquationRGB)); in applyState()
1821 device->setSourceBlendFactorAlpha(es2sw::ConvertBlendFunc(mState.sourceBlendAlpha)); in applyState()
1822 device->setDestBlendFactorAlpha(es2sw::ConvertBlendFunc(mState.destBlendAlpha)); in applyState()
1823 device->setBlendOperationAlpha(es2sw::ConvertBlendOp(mState.blendEquationAlpha)); in applyState()
1835 if(mState.stencilTestEnabled && framebuffer->hasStencil()) in applyState()
1844 device->setStencilWriteMask(mState.stencilWritemask); in applyState()
1845 device->setStencilCompare(es2sw::ConvertStencilComparison(mState.stencilFunc)); in applyState()
1847 …device->setStencilReference((mState.stencilRef < (GLint)maxStencil) ? mState.stencilRef : maxStenc… in applyState()
1848 device->setStencilMask(mState.stencilMask); in applyState()
1850 device->setStencilFailOperation(es2sw::ConvertStencilOp(mState.stencilFail)); in applyState()
1851 device->setStencilZFailOperation(es2sw::ConvertStencilOp(mState.stencilPassDepthFail)); in applyState()
1852 device->setStencilPassOperation(es2sw::ConvertStencilOp(mState.stencilPassDepthPass)); in applyState()
1854 device->setStencilWriteMaskCCW(mState.stencilWritemask); in applyState()
1855 device->setStencilCompareCCW(es2sw::ConvertStencilComparison(mState.stencilFunc)); in applyState()
1857 …device->setStencilReferenceCCW((mState.stencilRef < (GLint)maxStencil) ? mState.stencilRef : maxSt… in applyState()
1858 device->setStencilMaskCCW(mState.stencilMask); in applyState()
1860 device->setStencilFailOperationCCW(es2sw::ConvertStencilOp(mState.stencilFail)); in applyState()
1861 device->setStencilZFailOperationCCW(es2sw::ConvertStencilOp(mState.stencilPassDepthFail)); in applyState()
1862 device->setStencilPassOperationCCW(es2sw::ConvertStencilOp(mState.stencilPassDepthPass)); in applyState()
1875 …lorWriteMask(0, es2sw::ConvertColorMask(mState.colorMaskRed, mState.colorMaskGreen, mState.colorMa… in applyState()
1876 device->setDepthWriteEnable(mState.depthMask); in applyState()
1883 if(mState.polygonOffsetFillEnabled) in applyState()
1888 device->setSlopeDepthBias(mState.polygonOffsetFactor); in applyState()
1889 float depthBias = ldexp(mState.polygonOffsetUnits, -(int)(depthbuffer->getDepthSize())); in applyState()
1904 if(mState.sampleAlphaToCoverageEnabled) in applyState()
1913 if(mState.sampleCoverageEnabled) in applyState()
1916 if(mState.sampleCoverageValue != 0) in applyState()
1927 if((i + 1) * mState.sampleCoverageValue >= threshold) in applyState()
1935 if(mState.sampleCoverageInvert) in applyState()
1957 switch(mState.shadeModel) in applyState()
1959 default: UNREACHABLE(mState.shadeModel); in applyState()
2067 …GLenum err = mIndexDataManager->prepareIndexData(type, count, mState.elementArrayBuffer, indices, … in applyIndexBuffer()
2111 … sw::Color<float>(mState.textureUnit[unit].color.red, mState.textureUnit[unit].color.green, mState… in applyTextures()
2113 if(mState.textureUnit[unit].environmentMode != GL_COMBINE) in applyTextures()
2131 switch(mState.textureUnit[unit].environmentMode) in applyTextures()
2241 UNREACHABLE(mState.textureUnit[unit].environmentMode); in applyTextures()
2246 device->setFirstArgument(unit, es2sw::ConvertSourceArgument(mState.textureUnit[unit].src0RGB)); in applyTextures()
2247 … device->setFirstModifier(unit, es2sw::ConvertSourceOperand(mState.textureUnit[unit].operand0RGB)); in applyTextures()
2248 device->setSecondArgument(unit, es2sw::ConvertSourceArgument(mState.textureUnit[unit].src1RGB)); in applyTextures()
2249 …device->setSecondModifier(unit, es2sw::ConvertSourceOperand(mState.textureUnit[unit].operand1RGB)); in applyTextures()
2250 device->setThirdArgument(unit, es2sw::ConvertSourceArgument(mState.textureUnit[unit].src2RGB)); in applyTextures()
2251 … device->setThirdModifier(unit, es2sw::ConvertSourceOperand(mState.textureUnit[unit].operand2RGB)); in applyTextures()
2253 …device->setStageOperation(unit, es2sw::ConvertCombineOperation(mState.textureUnit[unit].combineRGB… in applyTextures()
2255 …device->setFirstArgumentAlpha(unit, es2sw::ConvertSourceArgument(mState.textureUnit[unit].src0Alph… in applyTextures()
2256 …device->setFirstModifierAlpha(unit, es2sw::ConvertSourceOperand(mState.textureUnit[unit].operand0A… in applyTextures()
2257 …device->setSecondArgumentAlpha(unit, es2sw::ConvertSourceArgument(mState.textureUnit[unit].src1Alp… in applyTextures()
2258 …device->setSecondModifierAlpha(unit, es2sw::ConvertSourceOperand(mState.textureUnit[unit].operand1… in applyTextures()
2259 …device->setThirdArgumentAlpha(unit, es2sw::ConvertSourceArgument(mState.textureUnit[unit].src2Alph… in applyTextures()
2260 …device->setThirdModifierAlpha(unit, es2sw::ConvertSourceOperand(mState.textureUnit[unit].operand2A… in applyTextures()
2262 …device->setStageOperationAlpha(unit, es2sw::ConvertCombineOperation(mState.textureUnit[unit].combi… in applyTextures()
2282 mState.textureUnit[mState.activeSampler].environmentMode = texEnvMode; in setTextureEnvMode()
2287 mState.textureUnit[mState.activeSampler].color = {red, green, blue, alpha}; in setTextureEnvColor()
2292 mState.textureUnit[mState.activeSampler].combineRGB = combineRGB; in setCombineRGB()
2297 mState.textureUnit[mState.activeSampler].combineAlpha = combineAlpha; in setCombineAlpha()
2302 mState.textureUnit[mState.activeSampler].operand0RGB = operand; in setOperand0RGB()
2307 mState.textureUnit[mState.activeSampler].operand1RGB = operand; in setOperand1RGB()
2312 mState.textureUnit[mState.activeSampler].operand2RGB = operand; in setOperand2RGB()
2317 mState.textureUnit[mState.activeSampler].operand0Alpha = operand; in setOperand0Alpha()
2322 mState.textureUnit[mState.activeSampler].operand1Alpha = operand; in setOperand1Alpha()
2327 mState.textureUnit[mState.activeSampler].operand2Alpha = operand; in setOperand2Alpha()
2332 mState.textureUnit[mState.activeSampler].src0RGB = src; in setSrc0RGB()
2337 mState.textureUnit[mState.activeSampler].src1RGB = src; in setSrc1RGB()
2342 mState.textureUnit[mState.activeSampler].src2RGB = src; in setSrc2RGB()
2347 mState.textureUnit[mState.activeSampler].src0Alpha = src; in setSrc0Alpha()
2352 mState.textureUnit[mState.activeSampler].src1Alpha = src; in setSrc1Alpha()
2357 mState.textureUnit[mState.activeSampler].src2Alpha = src; in setSrc2Alpha()
2428 GLsizei outputPitch = gl::ComputePitch(width, format, type, mState.packAlignment); in readPixels()
2688 float depth = clamp01(mState.depthClearValue); in clear()
2689 int stencil = mState.stencilClearValue & 0x000000FF; in clear()
2693 unsigned int rgbaMask = (mState.colorMaskRed ? 0x1 : 0) | in clear()
2694 (mState.colorMaskGreen ? 0x2 : 0) | in clear()
2695 (mState.colorMaskBlue ? 0x4 : 0) | in clear()
2696 (mState.colorMaskAlpha ? 0x8 : 0); in clear()
2700 …device->clearColor(mState.colorClearValue.red, mState.colorClearValue.green, mState.colorClearValu… in clear()
2706 if(mState.depthMask != 0) in clear()
2714 if(mState.stencilWritemask != 0) in clear()
2716 device->clearStencil(stencil, mState.stencilWritemask); in clear()
2757 if(!indices && !mState.elementArrayBuffer) in drawElements()
2817 float Zw = sw::clamp(mState.zNear + z * (mState.zFar - mState.zNear), mState.zNear, mState.zFar); in drawTexture()
2824 ASSERT(mState.samplerTexture[TEXTURE_2D][1].name() == 0); // Multi-texturing unimplemented in drawTexture()
2838 VertexAttribute oldPositionAttribute = mState.vertexAttribute[sw::Position]; in drawTexture()
2839 VertexAttribute oldTexCoord0Attribute = mState.vertexAttribute[sw::TexCoord0]; in drawTexture()
2840 gl::BindingPointer<Buffer> oldArrayBuffer = mState.arrayBuffer; in drawTexture()
2841 mState.arrayBuffer = nullptr; in drawTexture()
2859 mState.vertexAttribute[sw::Position] = oldPositionAttribute; in drawTexture()
2860 mState.vertexAttribute[sw::TexCoord0] = oldTexCoord0Attribute; in drawTexture()
2861 mState.arrayBuffer = oldArrayBuffer; in drawTexture()
3000 if(mState.arrayBuffer.name() == buffer) in detachBuffer()
3002 mState.arrayBuffer = nullptr; in detachBuffer()
3005 if(mState.elementArrayBuffer.name() == buffer) in detachBuffer()
3007 mState.elementArrayBuffer = nullptr; in detachBuffer()
3012 if(mState.vertexAttribute[attribute].mBoundBuffer.name() == buffer) in detachBuffer()
3014 mState.vertexAttribute[attribute].mBoundBuffer = nullptr; in detachBuffer()
3029 if(mState.samplerTexture[type][sampler].name() == texture) in detachTexture()
3031 mState.samplerTexture[type][sampler] = nullptr; in detachTexture()
3055 if(mState.framebuffer == framebuffer) in detachFramebuffer()
3067 if(mState.renderbuffer.name() == renderbuffer) in detachRenderbuffer()
3087 return mState.cullFaceEnabled && mState.cullMode == GL_FRONT_AND_BACK && isTriangleMode(drawMode); in cullSkipsDraw()
3113 mState.vertexAttribute[index].mCurrentValue[0] = x; in setVertexAttrib()
3114 mState.vertexAttribute[index].mCurrentValue[1] = y; in setVertexAttrib()
3115 mState.vertexAttribute[index].mCurrentValue[2] = z; in setVertexAttrib()
3116 mState.vertexAttribute[index].mCurrentValue[3] = w; in setVertexAttrib()
3234 switch(mState.activeSampler) in currentMatrixStack()
3376 mState.vertexAttribute[sw::Position].mArrayEnabled = enable; in setVertexArrayEnabled()
3381 return mState.vertexAttribute[sw::Position].mArrayEnabled; in isVertexArrayEnabled()
3386 mState.vertexAttribute[sw::Normal].mArrayEnabled = enable; in setNormalArrayEnabled()
3391 return mState.vertexAttribute[sw::Normal].mArrayEnabled; in isNormalArrayEnabled()
3396 mState.vertexAttribute[sw::Color0].mArrayEnabled = enable; in setColorArrayEnabled()
3401 return mState.vertexAttribute[sw::Color0].mArrayEnabled; in isColorArrayEnabled()
3406 mState.vertexAttribute[sw::PointSize].mArrayEnabled = enable; in setPointSizeArrayEnabled()
3411 return mState.vertexAttribute[sw::PointSize].mArrayEnabled; in isPointSizeArrayEnabled()
3416 mState.vertexAttribute[sw::TexCoord0 + clientTexture].mArrayEnabled = enable; in setTextureCoordArrayEnabled()
3421 return mState.vertexAttribute[sw::TexCoord0 + clientTexture].mArrayEnabled; in isTextureCoordArrayEnabled()
3496 return mState.activeSampler; in getActiveTexture()