------------------------------------------------------------------------------- Toggle the "Display Normals" state -------------------------------------------------------------------------------
| 210 | // Toggle the "Display Normals" state |
| 211 | //------------------------------------------------------------------------------- |
| 212 | void 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 | |
| 221 | static void storeRegKey(bool option, LPCSTR name) { |
| 222 | // store this in the registry, too |
no outgoing calls
no test coverage detected