1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:27:35 +00:00

LibGL: Implement glRectf and glRecti

This commit is contained in:
Jelle Raaijmakers 2021-12-24 14:53:32 +01:00 committed by Andreas Kling
parent 4a36d6b439
commit d83702cb92
5 changed files with 30 additions and 1 deletions

View file

@ -164,3 +164,13 @@ void glNormal3fv(GLfloat const* v)
{
g_gl_context->gl_normal(v[0], v[1], v[2]);
}
void glRectf(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
{
g_gl_context->gl_rect(x1, y1, x2, y2);
}
void glRecti(GLint x1, GLint y1, GLint x2, GLint y2)
{
g_gl_context->gl_rect(x1, y1, x2, y2);
}