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

Function ToggleSpecular

tools/assimp_view/MessageProc.cpp:283–290  ·  view source on GitHub ↗

------------------------------------------------------------------------------- Toggle the "Specular" state -------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

281// Toggle the "Specular" state
282//-------------------------------------------------------------------------------
283void ToggleSpecular() {
284 g_sOptions.bNoSpecular = !g_sOptions.bNoSpecular;
285
286 storeRegKey(g_sOptions.bNoSpecular, "NoSpecular");
287
288 // update all specular materials
289 CMaterialManager::Instance().UpdateSpecularMaterials();
290}
291
292//-------------------------------------------------------------------------------
293// Toggle the "RenderMats" state

Callers 2

MessageProcFunction · 0.85
_tWinMainFunction · 0.85

Calls 3

storeRegKeyFunction · 0.85
InstanceClass · 0.85

Tested by

no test coverage detected