Clears the display to a specified color
| 1749 | |
| 1750 | // Clears the display to a specified color |
| 1751 | void rend_ClearScreen(ddgr_color color) { |
| 1752 | int r = (color >> 16 & 0xFF); |
| 1753 | int g = (color >> 8 & 0xFF); |
| 1754 | int b = (color & 0xFF); |
| 1755 | |
| 1756 | dglClearColor((float)r / 255.0f, (float)g / 255.0f, (float)b / 255.0f, 0); |
| 1757 | |
| 1758 | dglClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); |
| 1759 | } |
| 1760 | |
| 1761 | // Clears the zbuffer for the screen |
| 1762 | void rend_ClearZBuffer(void) { dglClear(GL_DEPTH_BUFFER_BIT); } |
no outgoing calls
no test coverage detected