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

Method initProgramState

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

Source from the content-addressed store, hash-verified

182//
183
184bool Effect::initProgramState(std::string_view fragmentFilename)
185{
186 auto program = ProgramManager::getInstance()->loadProgram(positionTextureColor_vert, fragmentFilename, VertexLayoutType::Sprite);
187 auto programState = new backend::ProgramState(program);
188 AX_SAFE_RELEASE(_programState);
189 _programState = programState;
190
191 return _programState != nullptr;
192}
193
194Effect::Effect() {}
195

Callers

nothing calls this directly

Calls 2

getInstanceFunction · 0.85
loadProgramMethod · 0.80

Tested by

no test coverage detected