MCPcopy Create free account
hub / github.com/defold/defold / GetEmitterRenderData

Function GetEmitterRenderData

engine/particle/src/particle.cpp:2122–2138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2120 }
2121
2122 void GetEmitterRenderData(HParticleContext context, HInstance instance, uint32_t emitter_index, EmitterRenderData** data)
2123 {
2124 Instance* inst = GetInstance(context, instance);
2125
2126 if (inst != 0x0 && emitter_index < inst->m_Emitters.Size())
2127 {
2128 Emitter* emitter = &inst->m_Emitters[emitter_index];
2129
2130 if (emitter && data != 0x0)
2131 {
2132 *data = &emitter->m_RenderData;
2133 return;
2134 }
2135 }
2136
2137 *data = 0x0;
2138 }
2139
2140 const char* GetMaterialPath(HPrototype prototype, uint32_t emitter_index)
2141 {

Callers 4

TEST_FFunction · 0.85
CollectRenderEntriesFunction · 0.85
CalcVertexBufferSizeFunction · 0.85
CompParticleFXRenderFunction · 0.85

Calls 2

GetInstanceFunction · 0.70
SizeMethod · 0.45

Tested by 1

TEST_FFunction · 0.68