| 232 | } |
| 233 | |
| 234 | void GraphicsState::setViewport(uint32_t index, const GraphicsState::Viewport& vp, bool setScissors) |
| 235 | { |
| 236 | mViewports[index] = vp; |
| 237 | |
| 238 | if (setScissors) |
| 239 | { |
| 240 | GraphicsState::Scissor sc; |
| 241 | sc.left = (int32_t)vp.originX; |
| 242 | sc.right = sc.left + (int32_t)vp.width; |
| 243 | sc.top = (int32_t)vp.originY; |
| 244 | sc.bottom = sc.top + (int32_t)vp.height; |
| 245 | this->setScissors(index, sc); |
| 246 | } |
| 247 | } |
| 248 | |
| 249 | void GraphicsState::setScissors(uint32_t index, const GraphicsState::Scissor& sc) |
| 250 | { |
no test coverage detected