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

Function rend_GetPixel

renderer/HardwareOpenGL.cpp:1810–1814  ·  view source on GitHub ↗

Sets a pixel on the display

Source from the content-addressed store, hash-verified

1808
1809// Sets a pixel on the display
1810ddgr_color rend_GetPixel(int x, int y) {
1811 ddgr_color color[4];
1812 dglReadPixels(x, (gpu_state.screen_height - 1) - y, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, (GLvoid *)color);
1813 return color[0];
1814}
1815
1816// Draws a line
1817void rend_DrawLine(int x1, int y1, int x2, int y2) {

Callers 9

DrawAllPathsFunction · 0.50
EBNode_DrawRoomFunction · 0.50
RenderObjectFunction · 0.50
DrawTexturedSkyFunction · 0.50
DrawSkyFunction · 0.50
RenderFaceFunction · 0.50
getpixelMethod · 0.50
getpixelcMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected