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

Function rend_SetPixel

renderer/HardwareOpenGL.cpp:1795–1807  ·  view source on GitHub ↗

Sets a pixel on the display

Source from the content-addressed store, hash-verified

1793
1794// Sets a pixel on the display
1795void rend_SetPixel(ddgr_color color, int x, int y) {
1796 int r = (color >> 16 & 0xFF);
1797 int g = (color >> 8 & 0xFF);
1798 int b = (color & 0xFF);
1799
1800 g3_RefreshTransforms(true);
1801
1802 dglColor3ub(r, g, b);
1803
1804 dglBegin(GL_POINTS);
1805 dglVertex2i(x, y);
1806 dglEnd();
1807}
1808
1809// Sets a pixel on the display
1810ddgr_color rend_GetPixel(int x, int y) {

Callers 10

DrawAllPathsFunction · 0.50
EBNode_DrawRoomFunction · 0.50
RenderObjectFunction · 0.50
DrawTexturedSkyFunction · 0.50
DrawSkyFunction · 0.50
RenderFloatingTrigFunction · 0.50
RenderFaceFunction · 0.50
setpixelMethod · 0.50
setpixelcMethod · 0.50

Calls 1

g3_RefreshTransformsFunction · 0.85

Tested by

no test coverage detected