MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / SetColor

Method SetColor

ogsr_engine/xrGame/torch_script.cpp:27–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27void CTorch::SetColor(const Fcolor& color, int target)
28{
29 switch (target)
30 {
31 case 0:
32 m_color = color;
33 light_render->set_color(m_color);
34 break;
35 case 1:
36 if (light_omni)
37 light_omni->set_color(color);
38 break;
39 }
40}
41
42void CTorch::SetRGB(float r, float g, float b, int target)
43{

Callers 15

draw_nodesMethod · 0.45
RenderUIMethod · 0.45
operator()Method · 0.45
operator()Method · 0.45
UpdateCLMethod · 0.45
OnHUDDrawMethod · 0.45
UpdateAnimMethod · 0.45
OnHUDDrawMethod · 0.45
DbgUbdateClMethod · 0.45
RenderMethod · 0.45
OnRenderMethod · 0.45
create_defaultMethod · 0.45

Calls 1

set_colorMethod · 0.80

Tested by

no test coverage detected