| 2136 | } |
| 2137 | |
| 2138 | void rend_TransformSetToPassthru(void) { |
| 2139 | int width = gpu_state.screen_width; |
| 2140 | int height = gpu_state.screen_height; |
| 2141 | |
| 2142 | // TODO: Generalize |
| 2143 | // Projection |
| 2144 | dglMatrixMode(GL_PROJECTION); |
| 2145 | dglLoadIdentity(); |
| 2146 | dglOrtho((GLfloat)0.0f, (GLfloat)(width), (GLfloat)(height), (GLfloat)0.0f, 0.0f, 1.0f); |
| 2147 | |
| 2148 | // Viewport |
| 2149 | dglViewport(0, 0, width, height); |
| 2150 | dglScissor(0, 0, width, height); |
| 2151 | |
| 2152 | // ModelView |
| 2153 | dglMatrixMode(GL_MODELVIEW); |
| 2154 | dglLoadIdentity(); |
| 2155 | } |
| 2156 | |
| 2157 | void rend_TransformSetViewport(int lx, int ty, int width, int height) { |
| 2158 | dglViewport(lx, gpu_state.screen_height - (ty + height - 1), width, height); |
no outgoing calls
no test coverage detected