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

Function ToggleMats

tools/assimp_view/MessageProc.cpp:295–302  ·  view source on GitHub ↗

------------------------------------------------------------------------------- Toggle the "RenderMats" state -------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

293// Toggle the "RenderMats" state
294//-------------------------------------------------------------------------------
295void ToggleMats() {
296 g_sOptions.bRenderMats = !g_sOptions.bRenderMats;
297
298 storeRegKey(g_sOptions.bRenderMats, "RenderMats");
299
300 // update all specular materials
301 CMaterialManager::Instance().UpdateSpecularMaterials();
302}
303
304//-------------------------------------------------------------------------------
305// Toggle the "Culling" state

Callers 2

MessageProcFunction · 0.85
_tWinMainFunction · 0.85

Calls 3

storeRegKeyFunction · 0.85
InstanceClass · 0.85

Tested by

no test coverage detected