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

Method DrawBegin

src/visual/ModeSelectorContext.cpp:18–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18void ModeSelectorContext::DrawBegin() {
19 glClearColor(ThemeMgr::mgr.currentTheme->generalBackground.r, ThemeMgr::mgr.currentTheme->generalBackground.g, ThemeMgr::mgr.currentTheme->generalBackground.b,1.0);
20 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
21
22 glMatrixMode(GL_MODELVIEW);
23 glLoadIdentity();
24
25 glDisable(GL_TEXTURE_2D);
26}
27
28void ModeSelectorContext::DrawSelector(const std::string& label, int c, int cMax, bool on, float r, float g, float b, float a, float px, float py) {
29 GLint vp[4];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected