mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:17:44 +00:00
LibGL: Implement glVertex2f(v)
This commit is contained in:
parent
6b11a5688d
commit
193b53344a
2 changed files with 12 additions and 0 deletions
|
@ -20,6 +20,16 @@ void glEnd()
|
|||
g_gl_context->gl_end();
|
||||
}
|
||||
|
||||
void glVertex2f(GLfloat x, GLfloat y)
|
||||
{
|
||||
g_gl_context->gl_vertex(x, y, 0.0, 1.0);
|
||||
}
|
||||
|
||||
void glVertex2fv(const GLfloat* v)
|
||||
{
|
||||
g_gl_context->gl_vertex(v[0], v[1], 0.0, 1.0);
|
||||
}
|
||||
|
||||
void glVertex3f(GLfloat x, GLfloat y, GLfloat z)
|
||||
{
|
||||
g_gl_context->gl_vertex(x, y, z, 1.0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue