MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / SetProjection

Method SetProjection

extensions/olcPGEX_Graphics3D.h:981–988  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

979 }
980
981 void GFX3D::PipeLine::SetProjection(float fFovDegrees, float fAspectRatio, float fNear, float fFar, float fLeft, float fTop, float fWidth, float fHeight)
982 {
983 matProj = GFX3D::Math::Mat_MakeProjection(fFovDegrees, fAspectRatio, fNear, fFar);
984 fViewX = fLeft;
985 fViewY = fTop;
986 fViewW = fWidth;
987 fViewH = fHeight;
988 }
989
990 void GFX3D::PipeLine::SetCamera(olc::GFX3D::vec3d &pos, olc::GFX3D::vec3d &lookat, olc::GFX3D::vec3d &up)
991 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected