| 588 | } |
| 589 | |
| 590 | void GFXGLDevice::clearColorAttachment(const U32 attachment, const LinearColorF& color) |
| 591 | { |
| 592 | const GLfloat clearColor[4] = { color.red, color.green, color.blue, color.alpha }; |
| 593 | glClearBufferfv(GL_COLOR, attachment, clearColor); |
| 594 | } |
| 595 | |
| 596 | // Given a primitive type and a number of primitives, return the number of indexes/vertexes used. |
| 597 | inline GLsizei GFXGLDevice::primCountToIndexCount(GFXPrimitiveType primType, U32 primitiveCount) |