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

Function rend_GetAspectRatio

renderer/HardwareBaseGPU.cpp:233–236  ·  view source on GitHub ↗

Returns the aspect ratio of the physical screen

Source from the content-addressed store, hash-verified

231
232// Returns the aspect ratio of the physical screen
233float rend_GetAspectRatio(void) {
234 float aspect_ratio = (float)((3.0f * gpu_state.screen_width) / (4.0f * gpu_state.screen_height));
235 return aspect_ratio;
236}
237
238// Given a source x,y and width,height, draws any sized bitmap into the renderer lfb
239void rend_DrawLFBBitmap(int sx, int sy, int w, int h, int dx, int dy, uint16_t *data, int rowsize) {}

Callers 2

g3_GetProjectionMatrixFunction · 0.70
g3_StartFrameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected