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

Function ClearBG

tools/assimp_view/MessageProc.cpp:431–439  ·  view source on GitHub ↗

------------------------------------------------------------------------------- Reset the background color to a smart and nice grey -------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

429// Reset the background color to a smart and nice grey
430//-------------------------------------------------------------------------------
431void ClearBG() {
432 D3DCOLOR clrColor = D3DCOLOR_ARGB(0xFF,100,100,100);
433 CBackgroundPainter::Instance().SetColor(clrColor);
434
435 RegSetValueExA(g_hRegistry,"LastSkyBoxSrc",0,REG_SZ,(const BYTE*)"",MAX_PATH);
436 RegSetValueExA(g_hRegistry,"LastTextureSrc",0,REG_SZ,(const BYTE*)"",MAX_PATH);
437
438 RegSetValueExA(g_hRegistry,"Color",0,REG_DWORD,(const BYTE*)&clrColor,4);
439}
440
441//-------------------------------------------------------------------------------
442// Let the user choose a color in a windows standard color dialog

Callers 1

MessageProcFunction · 0.85

Calls 2

InstanceClass · 0.85
SetColorMethod · 0.45

Tested by

no test coverage detected