Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
TransformMatrix Class Reference

#include <TransformMatrix.h>

Public Member Functions

 TransformMatrix ()
 
void Reset ()
 
void SetTranslation (float transX, float transY, float transZ)
 
void SetScaler (float scaleX, float scaleY, float centerX, float centerY)
 
void SetXRotation (float angle, float y, float z, float ar=1.0f)
 
void SetYRotation (float angle, float x, float z, float ar=1.0f)
 
void SetZRotation (float angle, float x, float y, float ar=1.0f)
 
void SetFader (float a)
 
void SetFader (float a, float r, float g, float b)
 
const TransformMatrixoperator*= (const TransformMatrix &right)
 
TransformMatrix operator* (const TransformMatrix &right) const
 
void TransformPosition (float &x, float &y, float &z) const XBMC_FORCE_INLINE
 
void TransformPositionUnscaled (float &x, float &y, float &z) const XBMC_FORCE_INLINE
 
void InverseTransformPosition (float &x, float &y) const XBMC_FORCE_INLINE
 
float TransformXCoord (float x, float y, float z) const XBMC_FORCE_INLINE
 
float TransformYCoord (float x, float y, float z) const XBMC_FORCE_INLINE
 
float TransformZCoord (float x, float y, float z) const XBMC_FORCE_INLINE
 
KODI::UTILS::COLOR::Color TransformAlpha (KODI::UTILS::COLOR::Color color) const XBMC_FORCE_INLINE
 
KODI::UTILS::COLOR::Color TransformColor (KODI::UTILS::COLOR::Color color) const XBMC_FORCE_INLINE
 

Static Public Member Functions

static TransformMatrix CreateTranslation (float transX, float transY, float transZ=0)
 
static TransformMatrix CreateScaler (float scaleX, float scaleY, float scaleZ=1.0f)
 
static TransformMatrix CreateZRotation (float angle, float x, float y, float ar=1.0f)
 
static TransformMatrix CreateFader (float a)
 
static TransformMatrix CreateFader (float a, float r, float g, float b)
 

Public Attributes

float m [3][4]
 
float alpha
 
float red
 
float green
 
float blue
 
bool identity
 
uint32_t depth {0}
 

Constructor & Destructor Documentation

◆ TransformMatrix()

TransformMatrix::TransformMatrix ( )
inline

Member Function Documentation

◆ CreateFader() [1/2]

static TransformMatrix TransformMatrix::CreateFader ( float a)
inlinestatic

◆ CreateFader() [2/2]

static TransformMatrix TransformMatrix::CreateFader ( float a,
float r,
float g,
float b )
inlinestatic

◆ CreateScaler()

static TransformMatrix TransformMatrix::CreateScaler ( float scaleX,
float scaleY,
float scaleZ = 1.0f )
inlinestatic

◆ CreateTranslation()

static TransformMatrix TransformMatrix::CreateTranslation ( float transX,
float transY,
float transZ = 0 )
inlinestatic

◆ CreateZRotation()

static TransformMatrix TransformMatrix::CreateZRotation ( float angle,
float x,
float y,
float ar = 1.0f )
inlinestatic

◆ InverseTransformPosition()

void TransformMatrix::InverseTransformPosition ( float & x,
float & y ) const
inline

◆ operator*()

TransformMatrix TransformMatrix::operator* ( const TransformMatrix & right) const
inline

◆ operator*=()

const TransformMatrix & TransformMatrix::operator*= ( const TransformMatrix & right)
inline

◆ Reset()

void TransformMatrix::Reset ( )
inline

◆ SetFader() [1/2]

void TransformMatrix::SetFader ( float a)
inline

◆ SetFader() [2/2]

void TransformMatrix::SetFader ( float a,
float r,
float g,
float b )
inline

◆ SetScaler()

void TransformMatrix::SetScaler ( float scaleX,
float scaleY,
float centerX,
float centerY )
inline

◆ SetTranslation()

void TransformMatrix::SetTranslation ( float transX,
float transY,
float transZ )
inline

◆ SetXRotation()

void TransformMatrix::SetXRotation ( float angle,
float y,
float z,
float ar = 1.0f )
inline

◆ SetYRotation()

void TransformMatrix::SetYRotation ( float angle,
float x,
float z,
float ar = 1.0f )
inline

◆ SetZRotation()

void TransformMatrix::SetZRotation ( float angle,
float x,
float y,
float ar = 1.0f )
inline

◆ TransformAlpha()

KODI::UTILS::COLOR::Color TransformMatrix::TransformAlpha ( KODI::UTILS::COLOR::Color color) const
inline

◆ TransformColor()

KODI::UTILS::COLOR::Color TransformMatrix::TransformColor ( KODI::UTILS::COLOR::Color color) const
inline

◆ TransformPosition()

void TransformMatrix::TransformPosition ( float & x,
float & y,
float & z ) const
inline

◆ TransformPositionUnscaled()

void TransformMatrix::TransformPositionUnscaled ( float & x,
float & y,
float & z ) const
inline

◆ TransformXCoord()

float TransformMatrix::TransformXCoord ( float x,
float y,
float z ) const
inline

◆ TransformYCoord()

float TransformMatrix::TransformYCoord ( float x,
float y,
float z ) const
inline

◆ TransformZCoord()

float TransformMatrix::TransformZCoord ( float x,
float y,
float z ) const
inline

Member Data Documentation

◆ alpha

float TransformMatrix::alpha

◆ blue

float TransformMatrix::blue

◆ depth

uint32_t TransformMatrix::depth {0}

◆ green

float TransformMatrix::green

◆ identity

bool TransformMatrix::identity

◆ m

float TransformMatrix::m[3][4]

◆ red

float TransformMatrix::red

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