MCPcopy Create free account
hub / github.com/Hopson97/HopsonCraft / createProjMatrix

Function createProjMatrix

Source/Maths/Matrix_Maths.cpp:36–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 }
35
36 Matrix4 createProjMatrix(float fieldOfView)
37 {
38 return glm::perspective(glm::radians(fieldOfView),
39 (float)Display::get().getSize().x/ (float)Display::get().getSize().y,
40 0.1f,
41 1000.0f);
42 }
43}

Callers 2

CameraMethod · 0.85
setFOVMethod · 0.85

Calls 1

getSizeMethod · 0.45

Tested by

no test coverage detected