MCPcopy Create free account
hub / github.com/cjcliffe/CubicSDR / ModeSelectorContext

Method ModeSelectorContext

src/visual/ModeSelectorContext.cpp:9–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8
9ModeSelectorContext::ModeSelectorContext(ModeSelectorCanvas *canvas, wxGLContext *sharedContext, wxGLContextAttrs *ctxAttrs) :
10 PrimaryGLContext(canvas, sharedContext, ctxAttrs) {
11 glDisable(GL_CULL_FACE);
12 glDisable(GL_DEPTH_TEST);
13
14 glMatrixMode(GL_PROJECTION);
15 glLoadIdentity();
16}
17
18void ModeSelectorContext::DrawBegin() {
19 glClearColor(ThemeMgr::mgr.currentTheme->generalBackground.r, ThemeMgr::mgr.currentTheme->generalBackground.g, ThemeMgr::mgr.currentTheme->generalBackground.b,1.0);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected