1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 06:18:12 +00:00

LibGL: Implement all glRasterPos2* API methods

This commit is contained in:
Jelle Raaijmakers 2022-09-13 09:56:35 +02:00 committed by Andreas Kling
parent 7e85ec3431
commit 59fc2a4aad
2 changed files with 19 additions and 1 deletions

View file

@ -731,9 +731,24 @@ void glPushMatrix()
g_gl_context->gl_push_matrix();
}
void glRasterPos2d(GLdouble x, GLdouble y)
{
g_gl_context->gl_raster_pos(static_cast<float>(x), static_cast<float>(y), 0.f, 1.f);
}
void glRasterPos2f(GLfloat x, GLfloat y)
{
g_gl_context->gl_raster_pos(x, y, 0.f, 1.f);
}
void glRasterPos2i(GLint x, GLint y)
{
g_gl_context->gl_raster_pos(static_cast<float>(x), static_cast<float>(y), 0.0f, 1.0f);
g_gl_context->gl_raster_pos(static_cast<float>(x), static_cast<float>(y), 0.f, 1.f);
}
void glRasterPos2s(GLshort x, GLshort y)
{
g_gl_context->gl_raster_pos(static_cast<float>(x), static_cast<float>(y), 0.f, 1.f);
}
void glReadBuffer(GLenum mode)