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

Method DrawBegin

src/visual/MeterContext.cpp:12–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10}
11
12void MeterContext::DrawBegin() {
13 glDisable(GL_CULL_FACE);
14 glDisable(GL_DEPTH_TEST);
15
16 glClearColor(ThemeMgr::mgr.currentTheme->generalBackground.r, ThemeMgr::mgr.currentTheme->generalBackground.g, ThemeMgr::mgr.currentTheme->generalBackground.b, 1.0);
17 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
18
19 glMatrixMode(GL_MODELVIEW);
20 glLoadIdentity();
21
22 glDisable(GL_TEXTURE_2D);
23}
24
25void MeterContext::Draw(float r, float g, float b, float a, float level) {
26 glEnable(GL_BLEND);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected