mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-18 08:20:44 +00:00
LibGL: Implement glVertex2f(v)
This commit is contained in:
parent
6b11a5688d
commit
193b53344a
Notes:
sideshowbarker
2024-07-18 18:32:17 +09:00
Author: https://github.com/alimpfard
Commit: 193b53344a
Pull-request: https://github.com/SerenityOS/serenity/pull/6375
Reviewed-by: https://github.com/Hendiadyoin1
Reviewed-by: https://github.com/IdanHo
Reviewed-by: https://github.com/Quaker762
Reviewed-by: https://github.com/ccapitalK
Reviewed-by: https://github.com/gmta
Reviewed-by: https://github.com/sunverwerth ✅
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