MCPcopy Create free account
hub / github.com/assimp/assimp / LoadLightColors

Function LoadLightColors

tools/assimp_view/MessageProc.cpp:158–163  ·  view source on GitHub ↗

------------------------------------------------------------------------------- Load the light colors from the registry -------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

156// Load the light colors from the registry
157//-------------------------------------------------------------------------------
158void LoadLightColors() {
159 DWORD dwTemp = 4;
160 RegQueryValueEx(g_hRegistry,"LightColor0",nullptr,nullptr, (BYTE*)&g_avLightColors[0],&dwTemp);
161 RegQueryValueEx(g_hRegistry,"LightColor1",nullptr,nullptr, (BYTE*)&g_avLightColors[1],&dwTemp);
162 RegQueryValueEx(g_hRegistry,"LightColor2",nullptr,nullptr, (BYTE*)&g_avLightColors[2],&dwTemp);
163}
164
165//-------------------------------------------------------------------------------
166// Save the light colors to the registry

Callers 1

MessageProcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected