diff options
author | Max Kellermann <max.kellermann@gmail.com> | 2018-06-10 22:37:48 +0200 |
---|---|---|
committer | Max Kellermann <max.kellermann@gmail.com> | 2018-06-10 23:58:13 +0200 |
commit | e5307084ee49787184e3217acecb9ea63174a3ae (patch) | |
tree | 547dde8703e9941f1edf182c49f35b41547fcace | |
parent | f0092a53bd1c8a487dfea4284bf9ba7887d078ef (diff) |
guilib/MatrixGLES: add MultMatrixf() overload with CMatrixGL parameter
-rw-r--r-- | xbmc/guilib/MatrixGLES.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xbmc/guilib/MatrixGLES.h b/xbmc/guilib/MatrixGLES.h index bbfc404a64..05bcb75505 100644 --- a/xbmc/guilib/MatrixGLES.h +++ b/xbmc/guilib/MatrixGLES.h @@ -44,6 +44,12 @@ public: void Scalef(GLfloat x, GLfloat y, GLfloat z); void Rotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z); void MultMatrixf(const GLfloat *matrix); + + void MultMatrixf(const CMatrixGL &matrix) noexcept + { + MultMatrixf(&matrix.m_pMatrix.front()); + } + void LookAt(GLfloat eyex, GLfloat eyey, GLfloat eyez, GLfloat centerx, GLfloat centery, GLfloat centerz, GLfloat upx, GLfloat upy, GLfloat upz); 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); |