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

Method AddSprites

src/Nazara/Graphics/DepthRenderQueue.cpp:355–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353 */
354
355 void DepthRenderQueue::AddSprites(int renderOrder, const Material* material, const VertexStruct_XYZ_Color_UV* vertices, std::size_t spriteCount, const Texture* overlay)
356 {
357 NazaraAssert(material, "Invalid material");
358 NazaraUnused(renderOrder);
359 NazaraUnused(overlay);
360
361 if (!IsMaterialSuitable(material))
362 return;
363
364 if (material->HasDepthMaterial())
365 material = material->GetDepthMaterial();
366 else
367 material = m_baseMaterial;
368
369 ForwardRenderQueue::AddSprites(0, material, vertices, spriteCount, overlay);
370 }
371}
372

Callers 3

AddToRenderQueueMethod · 0.45
AddToRenderQueueMethod · 0.45
AddToRenderQueueMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected