MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / GetAspectRatio

Function GetAspectRatio

Source/Graphics/camera.cpp:332–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330}
331
332float GetAspectRatio() {
333 Graphics* gi = Graphics::Instance();
334 return gi->viewport_dim[2] / (float)gi->viewport_dim[3];
335}
336
337float TargetVertFovFromHorz(float target_horz_fov) {
338 return target_horz_fov / (4.0f / 3.0f);

Callers 2

GetPerspectiveMatrixMethod · 0.85
DrawSafeZoneMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected