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

Function ChooseBGColor

tools/assimp_view/MessageProc.cpp:489–498  ·  view source on GitHub ↗

------------------------------------------------------------------------------- Let the user choose the background color for the viewer -------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

487// Let the user choose the background color for the viewer
488//-------------------------------------------------------------------------------
489void ChooseBGColor() {
490 RegSetValueExA(g_hRegistry,"LastSkyBoxSrc",0,REG_SZ,(const BYTE*)"",MAX_PATH);
491 RegSetValueExA(g_hRegistry,"LastTextureSrc",0,REG_SZ,(const BYTE*)"",MAX_PATH);
492
493 D3DCOLOR clrColor;
494 DisplayColorDialog(&clrColor);
495 CBackgroundPainter::Instance().SetColor(clrColor);
496
497 RegSetValueExA(g_hRegistry,"Color",0,REG_DWORD,(const BYTE*)&clrColor,4);
498}
499
500//-------------------------------------------------------------------------------
501// Display the OpenFile dialog and let the user choose a new slybox as bg

Callers 1

MessageProcFunction · 0.85

Calls 3

DisplayColorDialogFunction · 0.85
InstanceClass · 0.85
SetColorMethod · 0.45

Tested by

no test coverage detected