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

Function rend_TransformSetToPassthru

renderer/HardwareOpenGL.cpp:2138–2155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2136}
2137
2138void 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
2157void rend_TransformSetViewport(int lx, int ty, int width, int height) {
2158 dglViewport(lx, gpu_state.screen_height - (ty + height - 1), width, height);

Callers 1

g3_RefreshTransformsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected