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

Method DrawBegin

src/visual/TuningContext.cpp:33–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33void TuningContext::DrawBegin() {
34 glClearColor(ThemeMgr::mgr.currentTheme->generalBackground.r, ThemeMgr::mgr.currentTheme->generalBackground.g,
35 ThemeMgr::mgr.currentTheme->generalBackground.b, 1.0);
36 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
37
38 glMatrixMode(GL_MODELVIEW);
39 glLoadIdentity();
40
41 glDisable(GL_TEXTURE_2D);
42}
43
44void TuningContext::Draw(float r, float g, float b, float a, float p1, float p2) {
45 glEnable(GL_BLEND);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected