| 129 | } |
| 130 | |
| 131 | bool 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 | |
| 147 | bool SpriteBatchNode::init() |
| 148 | { |
nothing calls this directly
no test coverage detected