DEKI/ENGINE docs
Deki 0.19.0
Modular C++ 2D engine for embedded displays and desktop
Loading...
Searching...
No Matches

4x4 matrix in the layout OpenGL/GLSL expect: column-major, m[col][row]. More...

#include <deki/Vector.h>

Public Member Functions

 Mat4 ()

Static Public Member Functions

static Mat4 Identity ()
static Mat4 Ortho (float left, float right, float bottom, float top, float nearZ, float farZ)
static Mat4 Perspective (float fovYRadians, float aspect, float nearZ, float farZ)
 OpenGL-style perspective; fovYRadians is the vertical field of view.

Public Attributes

float m [4][4]

Detailed Description

4x4 matrix in the layout OpenGL/GLSL expect: column-major, m[col][row].

Identity by default.

Constructor & Destructor Documentation

◆ Mat4()

Deki::Mat4::Mat4 ( )
inline

Member Function Documentation

◆ Identity()

Mat4 Deki::Mat4::Identity ( )
inlinestatic

◆ Ortho()

Mat4 Deki::Mat4::Ortho ( float left,
float right,
float bottom,
float top,
float nearZ,
float farZ )
inlinestatic

◆ Perspective()

Mat4 Deki::Mat4::Perspective ( float fovYRadians,
float aspect,
float nearZ,
float farZ )
inlinestatic

OpenGL-style perspective; fovYRadians is the vertical field of view.

Member Data Documentation

◆ m

float Deki::Mat4::m[4][4]

The documentation for this struct was generated from the following file: