Sets a pixel on the display
| 1793 | |
| 1794 | // Sets a pixel on the display |
| 1795 | void 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 |
| 1810 | ddgr_color rend_GetPixel(int x, int y) { |
no test coverage detected