MCPcopy Create free account
hub / github.com/axmolengine/axmol / setAlphaThreshold

Method setAlphaThreshold

core/2d/ClippingNode.cpp:331–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329}
330
331void ClippingNode::setAlphaThreshold(float alphaThreshold)
332{
333 if (alphaThreshold == 1 && alphaThreshold != _stencilStateManager->getAlphaThreshold())
334 {
335 // should reset program used by _stencil
336 if (_stencil)
337 restoreAllProgramStates();
338 }
339 _stencilStateManager->setAlphaThreshold(alphaThreshold);
340}
341
342bool ClippingNode::isInverted() const
343{

Callers 3

NewClippingNodeTestMethod · 0.45
clipperMethod · 0.45
setupMethod · 0.45

Calls 1

getAlphaThresholdMethod · 0.45

Tested by 3

NewClippingNodeTestMethod · 0.36
clipperMethod · 0.36
setupMethod · 0.36