mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
LibGL: Implement all of glVertex{2,3,4}{d,dv,f,fv,i,iv,s,sv}
This commit is contained in:
parent
41e74d4d31
commit
28ed518142
Notes:
sideshowbarker
2024-07-18 17:45:18 +09:00
Author: https://github.com/sunverwerth Commit: https://github.com/SerenityOS/serenity/commit/28ed5181425 Pull-request: https://github.com/SerenityOS/serenity/pull/7293
2 changed files with 120 additions and 0 deletions
|
@ -151,10 +151,30 @@ GLAPI void glPopMatrix();
|
|||
GLAPI void glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat 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);
|
||||
GLAPI void glVertex2dv(const GLdouble* v);
|
||||
GLAPI void glVertex2f(GLfloat x, GLfloat y);
|
||||
GLAPI void glVertex2fv(const GLfloat* v);
|
||||
GLAPI void glVertex2i(GLint x, GLint y);
|
||||
GLAPI void glVertex2iv(const GLint* v);
|
||||
GLAPI void glVertex2s(GLshort x, GLshort y);
|
||||
GLAPI void glVertex2sv(const GLshort* v);
|
||||
GLAPI void glVertex3d(GLdouble x, GLdouble y, GLdouble z);
|
||||
GLAPI void glVertex3dv(const GLdouble* v);
|
||||
GLAPI void glVertex3f(GLfloat x, GLfloat y, GLfloat z);
|
||||
GLAPI void glVertex3fv(const GLfloat* v);
|
||||
GLAPI void glVertex3i(GLint x, GLint y, GLint z);
|
||||
GLAPI void glVertex3iv(const GLint* v);
|
||||
GLAPI void glVertex3s(GLshort x, GLshort y, GLshort z);
|
||||
GLAPI void glVertex3sv(const GLshort* v);
|
||||
GLAPI void glVertex4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
|
||||
GLAPI void glVertex4dv(const GLdouble* v);
|
||||
GLAPI void glVertex4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
|
||||
GLAPI void glVertex4fv(const GLfloat* v);
|
||||
GLAPI void glVertex4i(GLint x, GLint y, GLint z, GLint w);
|
||||
GLAPI void glVertex4iv(const GLint* v);
|
||||
GLAPI void glVertex4s(GLshort x, GLshort y, GLshort z, GLshort w);
|
||||
GLAPI void glVertex4sv(const GLshort* v);
|
||||
GLAPI void glViewport(GLint x, GLint y, GLsizei width, GLsizei height);
|
||||
GLAPI void glEnable(GLenum cap);
|
||||
GLAPI void glDisable(GLenum cap);
|
||||
|
|
|
@ -20,6 +20,16 @@ void glEnd()
|
|||
g_gl_context->gl_end();
|
||||
}
|
||||
|
||||
void glVertex2d(GLdouble x, GLdouble y)
|
||||
{
|
||||
g_gl_context->gl_vertex(x, y, 0.0, 1.0);
|
||||
}
|
||||
|
||||
void glVertex2dv(const GLdouble* v)
|
||||
{
|
||||
g_gl_context->gl_vertex(v[0], v[1], 0.0, 1.0);
|
||||
}
|
||||
|
||||
void glVertex2f(GLfloat x, GLfloat y)
|
||||
{
|
||||
g_gl_context->gl_vertex(x, y, 0.0, 1.0);
|
||||
|
@ -30,6 +40,36 @@ void glVertex2fv(const GLfloat* v)
|
|||
g_gl_context->gl_vertex(v[0], v[1], 0.0, 1.0);
|
||||
}
|
||||
|
||||
void glVertex2i(GLint x, GLint y)
|
||||
{
|
||||
g_gl_context->gl_vertex(x, y, 0.0, 1.0);
|
||||
}
|
||||
|
||||
void glVertex2iv(const GLint* v)
|
||||
{
|
||||
g_gl_context->gl_vertex(v[0], v[1], 0.0, 1.0);
|
||||
}
|
||||
|
||||
void glVertex2s(GLshort x, GLshort y)
|
||||
{
|
||||
g_gl_context->gl_vertex(x, y, 0.0, 1.0);
|
||||
}
|
||||
|
||||
void glVertex2sv(const GLshort* v)
|
||||
{
|
||||
g_gl_context->gl_vertex(v[0], v[1], 0.0, 1.0);
|
||||
}
|
||||
|
||||
void glVertex3d(GLdouble x, GLdouble y, GLdouble z)
|
||||
{
|
||||
g_gl_context->gl_vertex(x, y, z, 1.0);
|
||||
}
|
||||
|
||||
void glVertex3dv(const GLdouble* v)
|
||||
{
|
||||
g_gl_context->gl_vertex(v[0], v[1], v[2], 1.0);
|
||||
}
|
||||
|
||||
void glVertex3f(GLfloat x, GLfloat y, GLfloat z)
|
||||
{
|
||||
g_gl_context->gl_vertex(x, y, z, 1.0);
|
||||
|
@ -40,6 +80,66 @@ void glVertex3fv(const GLfloat* v)
|
|||
g_gl_context->gl_vertex(v[0], v[1], v[2], 1.0);
|
||||
}
|
||||
|
||||
void glVertex3i(GLint x, GLint y, GLint z)
|
||||
{
|
||||
g_gl_context->gl_vertex(x, y, z, 1.0);
|
||||
}
|
||||
|
||||
void glVertex3iv(const GLint* v)
|
||||
{
|
||||
g_gl_context->gl_vertex(v[0], v[1], v[2], 1.0);
|
||||
}
|
||||
|
||||
void glVertex3s(GLshort x, GLshort y, GLshort z)
|
||||
{
|
||||
g_gl_context->gl_vertex(x, y, z, 1.0);
|
||||
}
|
||||
|
||||
void glVertex3sv(const GLshort* v)
|
||||
{
|
||||
g_gl_context->gl_vertex(v[0], v[1], v[2], 1.0);
|
||||
}
|
||||
|
||||
void glVertex4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
|
||||
{
|
||||
g_gl_context->gl_vertex(x, y, z, w);
|
||||
}
|
||||
|
||||
void glVertex4dv(const GLdouble* v)
|
||||
{
|
||||
g_gl_context->gl_vertex(v[0], v[1], v[2], v[3]);
|
||||
}
|
||||
|
||||
void glVertex4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
|
||||
{
|
||||
g_gl_context->gl_vertex(x, y, z, w);
|
||||
}
|
||||
|
||||
void glVertex4fv(const GLfloat* v)
|
||||
{
|
||||
g_gl_context->gl_vertex(v[0], v[1], v[2], v[3]);
|
||||
}
|
||||
|
||||
void glVertex4i(GLint x, GLint y, GLint z, GLint w)
|
||||
{
|
||||
g_gl_context->gl_vertex(x, y, z, w);
|
||||
}
|
||||
|
||||
void glVertex4iv(const GLint* v)
|
||||
{
|
||||
g_gl_context->gl_vertex(v[0], v[1], v[2], v[3]);
|
||||
}
|
||||
|
||||
void glVertex4s(GLshort x, GLshort y, GLshort z, GLshort w)
|
||||
{
|
||||
g_gl_context->gl_vertex(x, y, z, w);
|
||||
}
|
||||
|
||||
void glVertex4sv(const GLshort* v)
|
||||
{
|
||||
g_gl_context->gl_vertex(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);
|
||||
|
|
Loading…
Reference in a new issue