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

Function GetInstance

engine/particle/src/particle.cpp:117–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115 }
116
117 static Instance* GetInstance(HParticleContext context, HInstance instance)
118 {
119 if (instance == INVALID_INSTANCE)
120 return 0x0;
121 uint16_t version = instance >> 16;
122 Instance* i = context->m_Instances[instance & 0xffff];
123
124 if (version != i->m_VersionNumber)
125 {
126 dmLogError("Stale instance handle");
127 return 0;
128 }
129 return i;
130 }
131
132 float Hermite(float x0, float x1, float t0, float t1, float t) {
133 return (2 * t * t * t - 3 * t * t + 1) * x0 +

Callers 15

DestroyInstanceFunction · 0.70
ReloadInstanceFunction · 0.70
StartInstanceFunction · 0.70
StopInstanceFunction · 0.70
RetireInstanceFunction · 0.70
ResetInstanceFunction · 0.70
SetPositionFunction · 0.70
SetRotationFunction · 0.70
SetScaleFunction · 0.70
GetPositionFunction · 0.70
IsSleepingFunction · 0.70
GetParticleCountFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected