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

Function rend_GetProjectionParameters

renderer/HardwareBaseGPU.cpp:220–223  ·  view source on GitHub ↗

Returns the aspect ratio of the physical screen

Source from the content-addressed store, hash-verified

218
219// Returns the aspect ratio of the physical screen
220void rend_GetProjectionParameters(int *width, int *height) {
221 *width = gpu_state.clip_x2 - gpu_state.clip_x1;
222 *height = gpu_state.clip_y2 - gpu_state.clip_y1;
223}
224
225void rend_GetProjectionScreenParameters(int &screenLX, int &screenTY, int &screenW, int &screenH) {
226 screenLX = gpu_state.clip_x1;

Callers 8

g3_GetProjectionMatrixFunction · 0.70
g3_StartFrameFunction · 0.70
rend_DrawChunkedBitmapFunction · 0.70
RenderTerrainFunction · 0.50
Terrain_start_frameFunction · 0.50
TCAMRenderTerrainFunction · 0.50
RenderMineFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected