Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
CMatrixGL Class Reference

#include <MatrixGL.h>

Public Member Functions

 CMatrixGL ()=default
 
constexpr CMatrixGL (GLfloat x0, GLfloat x1, GLfloat x2, GLfloat x3, GLfloat x4, GLfloat x5, GLfloat x6, GLfloat x7, GLfloat x8, GLfloat x9, GLfloat x10, GLfloat x11, GLfloat x12, GLfloat x13, GLfloat x14, GLfloat x15)
 
 CMatrixGL (const TransformMatrix &src) noexcept
 
 operator const float * () const
 
void LoadIdentity ()
 
void Ortho (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f)
 
void Ortho2D (GLfloat l, GLfloat r, GLfloat b, GLfloat t)
 
void Frustum (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f)
 
void Translatef (GLfloat x, GLfloat y, GLfloat z)
 
void Scalef (GLfloat x, GLfloat y, GLfloat z)
 
void Rotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
 
void MultMatrixf (const CMatrixGL &matrix) noexcept
 
void LookAt (GLfloat eyex, GLfloat eyey, GLfloat eyez, GLfloat centerx, GLfloat centery, GLfloat centerz, GLfloat upx, GLfloat upy, GLfloat upz)
 

Static Public Member Functions

static bool Project (GLfloat objx, GLfloat objy, GLfloat objz, const GLfloat modelMatrix[16], const GLfloat projMatrix[16], const GLint viewport[4], GLfloat *winx, GLfloat *winy, GLfloat *winz)
 

Constructor & Destructor Documentation

◆ CMatrixGL() [1/3]

CMatrixGL::CMatrixGL ( )
default

◆ CMatrixGL() [2/3]

constexpr CMatrixGL::CMatrixGL ( GLfloat  x0,
GLfloat  x1,
GLfloat  x2,
GLfloat  x3,
GLfloat  x4,
GLfloat  x5,
GLfloat  x6,
GLfloat  x7,
GLfloat  x8,
GLfloat  x9,
GLfloat  x10,
GLfloat  x11,
GLfloat  x12,
GLfloat  x13,
GLfloat  x14,
GLfloat  x15 
)
inlineconstexpr

◆ CMatrixGL() [3/3]

CMatrixGL::CMatrixGL ( const TransformMatrix src)
noexcept

Member Function Documentation

◆ Frustum()

void CMatrixGL::Frustum ( GLfloat  l,
GLfloat  r,
GLfloat  b,
GLfloat  t,
GLfloat  n,
GLfloat  f 
)

◆ LoadIdentity()

void CMatrixGL::LoadIdentity ( )

◆ LookAt()

void CMatrixGL::LookAt ( GLfloat  eyex,
GLfloat  eyey,
GLfloat  eyez,
GLfloat  centerx,
GLfloat  centery,
GLfloat  centerz,
GLfloat  upx,
GLfloat  upy,
GLfloat  upz 
)

◆ MultMatrixf()

void CMatrixGL::MultMatrixf ( const CMatrixGL matrix)
noexcept

◆ operator const float *()

CMatrixGL::operator const float * ( ) const
inline

◆ Ortho()

void CMatrixGL::Ortho ( GLfloat  l,
GLfloat  r,
GLfloat  b,
GLfloat  t,
GLfloat  n,
GLfloat  f 
)

◆ Ortho2D()

void CMatrixGL::Ortho2D ( GLfloat  l,
GLfloat  r,
GLfloat  b,
GLfloat  t 
)

◆ Project()

bool CMatrixGL::Project ( GLfloat  objx,
GLfloat  objy,
GLfloat  objz,
const GLfloat  modelMatrix[16],
const GLfloat  projMatrix[16],
const GLint  viewport[4],
GLfloat *  winx,
GLfloat *  winy,
GLfloat *  winz 
)
static

◆ Rotatef()

void CMatrixGL::Rotatef ( GLfloat  angle,
GLfloat  x,
GLfloat  y,
GLfloat  z 
)

◆ Scalef()

void CMatrixGL::Scalef ( GLfloat  x,
GLfloat  y,
GLfloat  z 
)

◆ Translatef()

void CMatrixGL::Translatef ( GLfloat  x,
GLfloat  y,
GLfloat  z 
)

The documentation for this class was generated from the following files: