MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / OnReinitOpengl

Method OnReinitOpengl

editor/editorView.cpp:1138–1147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1136}
1137
1138void CEditorView::OnReinitOpengl() {
1139 // TODO: Add your command handler code here
1140 if (FindArg("-WindowGL")) {
1141 EditorStatus("Reinitting OpenGL");
1142 rend_Close();
1143 rend_Init(RENDERER_OPENGL, Descent, &Render_preferred_state);
1144 } else {
1145 EditorStatus("OpenGL command line argument not set.");
1146 }
1147}
1148
1149void CEditorView::OnUpdateReinitOpengl(CCmdUI *pCmdUI) {}
1150

Callers

nothing calls this directly

Calls 4

EditorStatusFunction · 0.85
FindArgFunction · 0.50
rend_CloseFunction · 0.50
rend_InitFunction · 0.50

Tested by

no test coverage detected