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

Method setpixelc

2dlib/viewport.cpp:308–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308void grViewport::setpixelc(ddgr_color col, int x, int y) {
309 ASSERT(vp_Locked);
310
311 if (x < CLIP_LEFT || x > CLIP_RIGHT || y < CLIP_TOP || y > CLIP_BOTTOM)
312 return;
313
314 rend_SetPixel(col, x, y);
315}
316
317ddgr_color grViewport::getpixel(int x, int y) {
318 ASSERT(vp_Locked);

Callers

nothing calls this directly

Calls 1

rend_SetPixelFunction · 0.50

Tested by

no test coverage detected