1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:47:44 +00:00

LibGL: Implement glColor3/4dv

This commit is contained in:
Jelle Raaijmakers 2021-12-24 14:45:05 +01:00 committed by Andreas Kling
parent 3883b42764
commit 9e9e1c7634
2 changed files with 12 additions and 0 deletions

View file

@ -10,6 +10,11 @@
extern GL::GLContext* g_gl_context;
void glColor3dv(GLdouble const* v)
{
g_gl_context->gl_color(v[0], v[1], v[2], 1.0);
}
void glColor3f(GLfloat r, GLfloat g, GLfloat b)
{
g_gl_context->gl_color(r, g, b, 1.0);
@ -25,6 +30,11 @@ void glColor3ub(GLubyte r, GLubyte g, GLubyte b)
g_gl_context->gl_color(r / 255.0, g / 255.0, b / 255.0, 1.0);
}
void glColor4dv(GLdouble const* v)
{
g_gl_context->gl_color(v[0], v[1], v[2], v[3]);
}
void glColor4f(GLfloat r, GLfloat g, GLfloat b, GLfloat a)
{
g_gl_context->gl_color(r, g, b, a);