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

Method setLightAmbient

RenderSystems/GL/src/OgreGLStateCacheManager.cpp:552–566  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

550 }
551
552 void GLStateCacheManager::setLightAmbient(GLfloat r, GLfloat g, GLfloat b)
553 {
554#ifdef OGRE_ENABLE_STATE_CACHE
555 if((mLightAmbient[0] != r) ||
556 (mLightAmbient[1] != g) ||
557 (mLightAmbient[2] != b))
558#endif
559 {
560 mLightAmbient[0] = r;
561 mLightAmbient[1] = g;
562 mLightAmbient[2] = b;
563
564 glLightModelfv(GL_LIGHT_MODEL_AMBIENT, &mLightAmbient[0]);
565 }
566 }
567
568 void GLStateCacheManager::setPointSize(GLfloat size)
569 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected