MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / SpawnDynamicLight

Function SpawnDynamicLight

TombEngine/Game/effects/Light.cpp:20–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 }
19
20 void SpawnDynamicLight(int x, int y, int z, short falloff, byte r, byte g, byte b)
21 {
22 g_Renderer.AddDynamicPointLight(Vector3(x, y, z), float(falloff * UCHAR_MAX), Color(r / (float)CHAR_MAX, g / (float)CHAR_MAX, b / (float)CHAR_MAX), false);
23 }
24
25 void SpawnDynamicFogBulb(const Vector3& pos, short radius, short density, const Color& color, int hash)
26 {

Callers 15

WorkerFlamethrowerFunction · 0.85
ControlFirePendulumFunction · 0.85
ControlTrainFunction · 0.85
ControlTwinAutoGunFunction · 0.85
TriggerSophiaLeightLightFunction · 0.85
ControlTonyFireBallFunction · 0.85
TonyControlFunction · 0.85
SpawnPunaLightningFunction · 0.85
FlameThrowerControlFunction · 0.85
SpawnMutantPlasmaLightFunction · 0.85

Calls 2

AddDynamicPointLightMethod · 0.80
Vector3Function · 0.50

Tested by

no test coverage detected