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

Method init

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

Source from the content-addressed store, hash-verified

200ShaderMonjori::ShaderMonjori() {}
201
202bool ShaderMonjori::init()
203{
204 if (ShaderTestDemo::init())
205 {
206 auto sn = ShaderNode::shaderNodeWithVertex("", "custom/example_Monjori_fs");
207
208 auto s = Director::getInstance()->getWinSize();
209 sn->setPosition(Vec2(s.width / 2, s.height / 2));
210
211 addChild(sn);
212
213 return true;
214 }
215
216 return false;
217}
218
219std::string ShaderMonjori::title() const
220{

Callers 1

drawMethod · 0.45

Calls 15

getInstanceFunction · 0.85
createFunction · 0.85
scheduleUpdateFunction · 0.85
getStringFromFileMethod · 0.80
fullPathForFilenameMethod · 0.80
loadProgramMethod · 0.80
getFrameSizeMethod · 0.80
getBackendTextureMethod · 0.80
initFunction · 0.50
Vec2Function · 0.50
SizeFunction · 0.50
setPositionMethod · 0.45

Tested by

no test coverage detected