| 971 | } |
| 972 | |
| 973 | void MySprite::draw(Renderer* renderer, const Mat4& transform, uint32_t flags) |
| 974 | { |
| 975 | const auto& projectionMat = Director::getInstance()->getMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_PROJECTION); |
| 976 | auto mvpMatrix = projectionMat * transform; |
| 977 | _customCommand.getPipelineDescriptor().programState->setUniform(_mvpMatrixLocation, mvpMatrix.m, |
| 978 | sizeof(mvpMatrix.m)); |
| 979 | _customCommand.init(_globalZOrder, transform, flags); |
| 980 | renderer->addCommand(&_customCommand); |
| 981 | } |
| 982 | |
| 983 | //------------------------------------------------------------------ |
| 984 | // |
nothing calls this directly
no test coverage detected