MCPcopy Index your code
hub / github.com/ad-si/LuaCAD / renderToChannel

Method renderToChannel

OpenCSG/src/channelManager.cpp:326–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324 }
325
326 void ChannelManager::renderToChannel(bool on) {
327
328 if (on) {
329 switch (mCurrentChannel) {
330 case NoChannel:
331 glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE);
332 break;
333 case Alpha:
334 glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_TRUE);
335 break;
336 case Blue:
337 glColorMask(GL_FALSE, GL_FALSE, GL_TRUE, GL_FALSE);
338 break;
339 case Green:
340 glColorMask(GL_FALSE, GL_TRUE, GL_FALSE, GL_FALSE);
341 break;
342 case Red:
343 glColorMask(GL_TRUE, GL_FALSE, GL_FALSE, GL_FALSE);
344 break;
345 case AllChannels:
346 glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
347 break;
348 }
349 }
350 else {
351 glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE);
352 }
353 }
354
355
356 void ChannelManager::setupProjectiveTexture(ProjTextureSetup setup, GLint texSizeInv)

Callers 10

renderIntersectedFrontFunction · 0.80
subtractPrimitivesFunction · 0.80
renderIntersectedBackFunction · 0.80
renderSCSFunction · 0.80
discardFragmentsFunction · 0.80
parityTestAndDiscardFunction · 0.80
renderGoldfeatherFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected