| 27 | */ |
| 28 | |
| 29 | void TextSprite::AddToRenderQueue(AbstractRenderQueue* renderQueue, const InstanceData& instanceData) const |
| 30 | { |
| 31 | for (auto& pair : m_renderInfos) |
| 32 | { |
| 33 | Texture* overlay = pair.first; |
| 34 | RenderIndices& indices = pair.second; |
| 35 | |
| 36 | if (indices.count > 0) |
| 37 | { |
| 38 | const VertexStruct_XYZ_Color_UV* vertices = reinterpret_cast<const VertexStruct_XYZ_Color_UV*>(instanceData.data.data()); |
| 39 | renderQueue->AddSprites(instanceData.renderOrder, GetMaterial(), &vertices[indices.first * 4], indices.count, overlay); |
| 40 | } |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | /*! |
| 45 | * \brief Updates the text |
nothing calls this directly
no test coverage detected