Skip to content

Commit

Permalink
Add glMultMatrixd and glTranslated wrappers
Browse files Browse the repository at this point in the history
These functions are used by glu.
  • Loading branch information
mardy authored and WinterMute committed May 20, 2024
1 parent f1d6b92 commit 2edd089
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/gc_gl.c
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,16 @@ void glLoadMatrixf(const GLfloat *m)
}
glparamstate.dirty.bits.dirty_matrices = 1;
}

void glMultMatrixd(const GLdouble *m)
{
GLfloat mf[16];
for (int i = 0; i < 16; i++) {
mf[i] = m[i];
}
glMultMatrixf(mf);
}

void glMultMatrixf(const GLfloat *m)
{
Mtx44 curr;
Expand Down Expand Up @@ -937,6 +947,12 @@ void glScalef(GLfloat x, GLfloat y, GLfloat z)

glparamstate.dirty.bits.dirty_matrices = 1;
}

void glTranslated(GLdouble x, GLdouble y, GLdouble z)
{
glTranslatef(x, y, z);
}

void glTranslatef(GLfloat x, GLfloat y, GLfloat z)
{
Mtx44 newmat;
Expand Down

0 comments on commit 2edd089

Please sign in to comment.