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

Function ToggleNormals

tools/assimp_view/MessageProc.cpp:212–219  ·  view source on GitHub ↗

------------------------------------------------------------------------------- Toggle the "Display Normals" state -------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

210// Toggle the "Display Normals" state
211//-------------------------------------------------------------------------------
212void ToggleNormals() {
213 g_sOptions.bRenderNormals = !g_sOptions.bRenderNormals;
214
215 // store this in the registry, too
216 DWORD dwValue = 0;
217 if (g_sOptions.bRenderNormals)dwValue = 1;
218 RegSetValueExA(g_hRegistry,"RenderNormals",0,REG_DWORD,(const BYTE*)&dwValue,4);
219}
220
221static void storeRegKey(bool option, LPCSTR name) {
222 // store this in the registry, too

Callers 2

MessageProcFunction · 0.85
_tWinMainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected