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

Method create

core/renderer/Pass.cpp:66–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64static const char* s_ambientLightUniformColorName = "u_AmbientLightSourceColor";
65
66Pass* Pass::create(Technique* technique)
67{
68 auto pass = new Pass();
69 if (pass->init(technique))
70 {
71 pass->autorelease();
72 return pass;
73 }
74 AX_SAFE_DELETE(pass);
75 return nullptr;
76}
77
78Pass* Pass::createWithProgramState(Technique* technique, backend::ProgramState* programState)
79{

Callers

nothing calls this directly

Calls 2

autoreleaseMethod · 0.80
initMethod · 0.45

Tested by

no test coverage detected