Lines Matching defs:command
434 void render (gls::FragmentOpUtil::QuadRenderer& renderer, const RenderCommand& command, int viewportX, int viewportY)
436 if (command.params.stencilTestEnabled)
443 const StencilParams& sParams = command.params.stencil[face];
453 if (command.params.depthTestEnabled)
456 glDepthFunc(command.params.depthFunc);
457 glDepthMask(command.params.depthWriteMask ? GL_TRUE : GL_FALSE);
462 glColorMask(command.colorMask[0] ? GL_TRUE : GL_FALSE,
463 command.colorMask[1] ? GL_TRUE : GL_FALSE,
464 command.colorMask[2] ? GL_TRUE : GL_FALSE,
465 command.colorMask[3] ? GL_TRUE : GL_FALSE);
466 glViewport(command.rect.left+viewportX, command.rect.bottom+viewportY, command.rect.width, command.rect.height);
470 bool isFrontFacing = command.params.visibleFace == rr::FACETYPE_FRONT;
474 std::fill(DE_ARRAY_BEGIN(quad.color), DE_ARRAY_END(quad.color), command.color);
475 std::fill(DE_ARRAY_BEGIN(quad.depth), DE_ARRAY_END(quad.depth), command.params.depth);
622 // Fill in test command for this iteration.
651 // Test command.
681 // Test command.