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

Function SaveCheckerPatternColors

tools/assimp_view/MessageProc.cpp:177–186  ·  view source on GitHub ↗

------------------------------------------------------------------------------- Save the checker pattern colors to the registry -------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

175// Save the checker pattern colors to the registry
176//-------------------------------------------------------------------------------
177void SaveCheckerPatternColors() {
178 // we have it as float4. save it as binary value --.
179 RegSetValueExA(g_hRegistry,"CheckerPattern0",0,REG_BINARY,
180 (const BYTE*)CDisplay::Instance().GetFirstCheckerColor(),
181 sizeof(D3DXVECTOR3));
182
183 RegSetValueExA(g_hRegistry,"CheckerPattern1",0,REG_BINARY,
184 (const BYTE*)CDisplay::Instance().GetSecondCheckerColor(),
185 sizeof(D3DXVECTOR3));
186}
187
188//-------------------------------------------------------------------------------
189// Load the checker pattern colors from the registry

Callers 1

MessageProcFunction · 0.85

Calls 3

InstanceClass · 0.85
GetFirstCheckerColorMethod · 0.80
GetSecondCheckerColorMethod · 0.80

Tested by

no test coverage detected