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

Method getpixelc

2dlib/viewport.cpp:323–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323ddgr_color grViewport::getpixelc(int x, int y) {
324 ASSERT(vp_Locked);
325
326 if (x < CLIP_LEFT || x > CLIP_RIGHT || y < CLIP_TOP || y > CLIP_BOTTOM)
327 return 0;
328
329 return rend_GetPixel(x, y);
330}
331
332void grViewport::lock_clear(ddgr_color col) {
333 int l = CLIP_LEFT, t = CLIP_TOP, r = CLIP_RIGHT, b = CLIP_BOTTOM;

Callers

nothing calls this directly

Calls 1

rend_GetPixelFunction · 0.50

Tested by

no test coverage detected