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

Method SetColor

tools/assimp_view/Background.cpp:120–132  ·  view source on GitHub ↗

-------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

118
119//-------------------------------------------------------------------------------
120void CBackgroundPainter::SetColor(D3DCOLOR p_clrNew) {
121 if (TEXTURE_CUBE == eMode) {
122 RemoveSBDeps();
123 }
124
125 clrColor = p_clrNew;
126 eMode = SIMPLE_COLOR;
127
128 if (pcTexture) {
129 pcTexture->Release();
130 pcTexture = nullptr;
131 }
132}
133//-------------------------------------------------------------------------------
134void CBackgroundPainter::RemoveSBDeps() {
135 MODE e = eMode;

Callers 3

ClearBGFunction · 0.45
ChooseBGColorFunction · 0.45
_tWinMainFunction · 0.45

Calls 1

ReleaseMethod · 0.45

Tested by

no test coverage detected