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

Method DrawBorder

Descent3/pilot.cpp:3621–3638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3619}
3620
3621void UIBmpWindow::DrawBorder(void) {
3622 int minx, maxx, miny, maxy;
3623
3624 minx = 0;
3625 maxx = m_W - 1;
3626 miny = 0;
3627 maxy = m_H - 1;
3628
3629 rend_SetZBufferState(0);
3630 rend_SetFlatColor(GR_RGB(40, 255, 40));
3631
3632 rend_DrawLine(minx, miny, maxx, miny);
3633 rend_DrawLine(minx, maxy, maxx, maxy);
3634 rend_DrawLine(minx, miny, minx, maxy);
3635 rend_DrawLine(maxx, miny, maxx, maxy);
3636
3637 rend_SetZBufferState(1);
3638}
3639
3640void UIBmpWindow::OnDraw(void) {
3641 int bmh = -1;

Callers

nothing calls this directly

Calls 4

rend_SetZBufferStateFunction · 0.50
rend_SetFlatColorFunction · 0.50
GR_RGBFunction · 0.50
rend_DrawLineFunction · 0.50

Tested by

no test coverage detected