Sets a pixel on the display
| 1808 | |
| 1809 | // Sets a pixel on the display |
| 1810 | ddgr_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 |
| 1817 | void rend_DrawLine(int x1, int y1, int x2, int y2) { |
no outgoing calls
no test coverage detected