LibGL: Implement glScaled

This commit is contained in:
Jelle Raaijmakers 2021-12-01 16:13:04 +01:00 committed by Andreas Kling
parent 9dbc8d7e3c
commit 07bf37be75
Notes: sideshowbarker 2024-07-17 22:51:41 +09:00
3 changed files with 21 additions and 15 deletions

View file

@ -371,6 +371,7 @@ GLAPI void glPushMatrix();
GLAPI void glPopMatrix();
GLAPI void glMultMatrixf(GLfloat const* matrix);
GLAPI void glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
GLAPI void glScaled(GLdouble x, GLdouble y, GLdouble z);
GLAPI void glScalef(GLfloat x, GLfloat y, GLfloat z);
GLAPI void glTranslatef(GLfloat x, GLfloat y, GLfloat z);
GLAPI void glVertex2d(GLdouble x, GLdouble y);

View file

@ -83,3 +83,23 @@ void glOrtho(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdou
{
g_gl_context->gl_ortho(left, right, bottom, top, nearVal, farVal);
}
void glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
{
g_gl_context->gl_rotate(angle, x, y, z);
}
void glScaled(GLdouble x, GLdouble y, GLdouble z)
{
g_gl_context->gl_scale(x, y, z);
}
void glScalef(GLfloat x, GLfloat y, GLfloat z)
{
g_gl_context->gl_scale(x, y, z);
}
void glTranslatef(GLfloat x, GLfloat y, GLfloat z)
{
g_gl_context->gl_translate(x, y, z);
}

View file

@ -155,21 +155,6 @@ void glTexCoord4fv(const GLfloat* v)
g_gl_context->gl_tex_coord(v[0], v[1], v[2], v[3]);
}
void glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
{
g_gl_context->gl_rotate(angle, x, y, z);
}
void glScalef(GLfloat x, GLfloat y, GLfloat z)
{
g_gl_context->gl_scale(x, y, z);
}
void glTranslatef(GLfloat x, GLfloat y, GLfloat z)
{
g_gl_context->gl_translate(x, y, z);
}
void glNormal3f(GLfloat nx, GLfloat ny, GLfloat nz)
{
g_gl_context->gl_normal(nx, ny, nz);