MCPcopy Create free account
hub / github.com/OGRECave/ogre / setClearColour

Method setClearColour

RenderSystems/GL/src/OgreGLStateCacheManager.cpp:324–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322 }
323
324 void GLStateCacheManager::setClearColour(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
325 {
326#ifdef OGRE_ENABLE_STATE_CACHE
327 if((mClearColour[0] != red) ||
328 (mClearColour[1] != green) ||
329 (mClearColour[2] != blue) ||
330 (mClearColour[3] != alpha))
331#endif
332 {
333 mClearColour[0] = red;
334 mClearColour[1] = green;
335 mClearColour[2] = blue;
336 mClearColour[3] = alpha;
337
338 glClearColor(mClearColour[0], mClearColour[1], mClearColour[2], mClearColour[3]);
339 }
340 }
341
342 void GLStateCacheManager::setColourMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
343 {

Callers 1

clearFrameBufferMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected