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

Method setProgramState

core/2d/SpriteBatchNode.cpp:131–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131bool SpriteBatchNode::setProgramState(backend::ProgramState* programState, bool ownPS/* = false*/)
132{
133 AXASSERT(programState, "programState should not be nullptr");
134 if (Node::setProgramState(programState, ownPS))
135 {
136 auto& pipelineDescriptor = _quadCommand.getPipelineDescriptor();
137 pipelineDescriptor.programState = _programState;
138
139 setVertexLayout();
140 updateProgramStateTexture(_textureAtlas->getTexture());
141 setUniformLocation();
142 return true;
143 }
144 return false;
145}
146
147bool SpriteBatchNode::init()
148{

Callers

nothing calls this directly

Calls 2

setProgramStateFunction · 0.85
getTextureMethod · 0.45

Tested by

no test coverage detected