MCPcopy Create free account
hub / github.com/DavidColson/Polybox / Perspective

Function Perspective

source/graphics.cpp:843–846  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

841// ***********************************************************************
842
843void Perspective(f32 screenWidth, f32 screenHeight, f32 nearPlane, f32 farPlane, f32 fov) {
844 u64 mode = (u64)pRenderState->matrixModeState;
845 pRenderState->matrixStates[mode].Top() *= Matrixf::Perspective(screenWidth, screenHeight, nearPlane, farPlane, fov);
846}
847
848// ***********************************************************************
849

Callers 1

LuaPerspectiveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected