MCPcopy Create free account
hub / github.com/NazaraEngine/NazaraEngine / AddToRenderQueue

Method AddToRenderQueue

src/Nazara/Graphics/TextSprite.cpp:29–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

AddSpritesMethod · 0.45

Tested by

no test coverage detected