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

Method setTarget

tests/cpp-tests/Source/ShaderTest/ShaderTest2.cpp:217–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215};
216
217void EffectBlur::setTarget(EffectSprite* sprite)
218{
219 if (_programState == nullptr)
220 return;
221
222 Size size = sprite->getTexture()->getContentSizeInPixels();
223 SET_UNIFORM(_programState, "resolution", size);
224 SET_UNIFORM(_programState, "blurRadius", _blurRadius);
225 SET_UNIFORM(_programState, "sampleNum", _blurSampleNum);
226}
227
228bool EffectBlur::init(float blurRadius, float sampleNum)
229{

Callers 9

doShowAnimationMethod · 0.45
doHideAnimationMethod · 0.45
continueInitMethod · 0.45
onTouchEndMethod · 0.45
doShowAnimationMethod · 0.45
doHideAnimationMethod · 0.45
continueInitMethod · 0.45
setEffectMethod · 0.45
addEffectMethod · 0.45

Calls 3

Vec2Function · 0.50
getTextureMethod · 0.45
getContentSizeMethod · 0.45

Tested by

no test coverage detected