MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / clearColorAttachment

Method clearColorAttachment

Engine/source/gfx/gl/gfxGLDevice.cpp:590–594  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

588}
589
590void 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.
597inline GLsizei GFXGLDevice::primCountToIndexCount(GFXPrimitiveType primType, U32 primitiveCount)

Callers 1

renderMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected