Lines Matching refs:state
153 static void setGLState (glu::CallLogWrapper& wrapper, const RenderState& state, int viewportX, int viewportY)
155 if (state.scissorTestEnabled)
158 wrapper.glScissor(viewportX+state.scissorRectangle.left, viewportY+state.scissorRectangle.bottom,
159 state.scissorRectangle.width, state.scissorRectangle.height);
164 if (state.stencilTestEnabled)
171 const StencilState& sParams = state.stencil[face];
181 if (state.depthTestEnabled)
184 wrapper.glDepthFunc(state.depthFunc);
185 wrapper.glDepthMask(state.depthWriteMask ? GL_TRUE : GL_FALSE);
190 if (state.blendEnabled)
193 wrapper.glBlendEquationSeparate(state.blendRGBState.equation, state.blendAState.equation);
194 wrapper.glBlendFuncSeparate(state.blendRGBState.srcFunc, state.blendRGBState.dstFunc, state.blendAState.srcFunc, state.blendAState.dstFunc);
195 wrapper.glBlendColor(state.blendColor.x(), state.blendColor.y(), state.blendColor.z(), state.blendColor.w());
200 if (state.ditherEnabled)
205 wrapper.glColorMask(state.colorMask[0] ? GL_TRUE : GL_FALSE,
206 state.colorMask[1] ? GL_TRUE : GL_FALSE,
207 state.colorMask[2] ? GL_TRUE : GL_FALSE,
208 state.colorMask[3] ? GL_TRUE : GL_FALSE);
320 // Reset default fragment state.
335 setGLState(m_callLogWrapper, cmd->state, viewportX, viewportY);
360 translateState(cmd->state, refState, m_context.getRenderTarget());