| 346 | } |
| 347 | |
| 348 | olc::GFX3D::mat4x4 olc::GFX3D::Math::Mat_MakeTranslation(float x, float y, float z) |
| 349 | { |
| 350 | olc::GFX3D::mat4x4 matrix; |
| 351 | matrix.m[0][0] = 1.0f; |
| 352 | matrix.m[1][1] = 1.0f; |
| 353 | matrix.m[2][2] = 1.0f; |
| 354 | matrix.m[3][3] = 1.0f; |
| 355 | matrix.m[3][0] = x; |
| 356 | matrix.m[3][1] = y; |
| 357 | matrix.m[3][2] = z; |
| 358 | return matrix; |
| 359 | } |
| 360 | |
| 361 | olc::GFX3D::mat4x4 olc::GFX3D::Math::Mat_MakeProjection(float fFovDegrees, float fAspectRatio, float fNear, float fFar) |
| 362 | { |
nothing calls this directly
no outgoing calls
no test coverage detected