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

Function ToggleWireFrame

tools/assimp_view/MessageProc.cpp:323–331  ·  view source on GitHub ↗

------------------------------------------------------------------------------- Toggle the "WireFrame" state -------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

321// Toggle the "WireFrame" state
322//-------------------------------------------------------------------------------
323void ToggleWireFrame() {
324 if (g_sOptions.eDrawMode == RenderOptions::WIREFRAME) {
325 g_sOptions.eDrawMode = RenderOptions::NORMAL;
326 } else {
327 g_sOptions.eDrawMode = RenderOptions::WIREFRAME;
328 }
329
330 storeRegKey(RenderOptions::WIREFRAME == g_sOptions.eDrawMode, "Wireframe");
331}
332
333//-------------------------------------------------------------------------------
334// Toggle the "MultiSample" state

Callers 2

MessageProcFunction · 0.85
_tWinMainFunction · 0.85

Calls 1

storeRegKeyFunction · 0.85

Tested by

no test coverage detected