mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:07:36 +00:00
LibGL: Implement glColor3ub
This commit is contained in:
parent
d38c4ac8b5
commit
315973e73c
2 changed files with 8 additions and 1 deletions
|
@ -334,6 +334,7 @@ GLAPI void glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf al
|
||||||
GLAPI void glClearDepth(GLdouble depth);
|
GLAPI void glClearDepth(GLdouble depth);
|
||||||
GLAPI void glColor3f(GLfloat r, GLfloat g, GLfloat b);
|
GLAPI void glColor3f(GLfloat r, GLfloat g, GLfloat b);
|
||||||
GLAPI void glColor3fv(const GLfloat* v);
|
GLAPI void glColor3fv(const GLfloat* v);
|
||||||
|
GLAPI void glColor3ub(GLubyte r, GLubyte g, GLubyte b);
|
||||||
GLAPI void glColor4f(GLfloat r, GLfloat g, GLfloat b, GLfloat a);
|
GLAPI void glColor4f(GLfloat r, GLfloat g, GLfloat b, GLfloat a);
|
||||||
GLAPI void glColor4fv(const GLfloat* v);
|
GLAPI void glColor4fv(const GLfloat* v);
|
||||||
GLAPI void glColor4ub(GLubyte r, GLubyte g, GLubyte b, GLubyte a);
|
GLAPI void glColor4ub(GLubyte r, GLubyte g, GLubyte b, GLubyte a);
|
||||||
|
|
|
@ -14,11 +14,17 @@ void glColor3f(GLfloat r, GLfloat g, GLfloat b)
|
||||||
{
|
{
|
||||||
g_gl_context->gl_color(r, g, b, 1.0);
|
g_gl_context->gl_color(r, g, b, 1.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void glColor3fv(const GLfloat* v)
|
void glColor3fv(const GLfloat* v)
|
||||||
{
|
{
|
||||||
g_gl_context->gl_color(v[0], v[1], v[2], 1.0);
|
g_gl_context->gl_color(v[0], v[1], v[2], 1.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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 glColor4f(GLfloat r, GLfloat g, GLfloat b, GLfloat a)
|
void glColor4f(GLfloat r, GLfloat g, GLfloat b, GLfloat a)
|
||||||
{
|
{
|
||||||
g_gl_context->gl_color(r, g, b, a);
|
g_gl_context->gl_color(r, g, b, a);
|
||||||
|
@ -31,7 +37,7 @@ void glColor4fv(const GLfloat* v)
|
||||||
|
|
||||||
void glColor4ub(GLubyte r, GLubyte g, GLubyte b, GLubyte a)
|
void glColor4ub(GLubyte r, GLubyte g, GLubyte b, GLubyte a)
|
||||||
{
|
{
|
||||||
g_gl_context->gl_color(r / 255.0f, g / 255.0f, b / 255.0f, a / 255.0f);
|
g_gl_context->gl_color(r / 255.0, g / 255.0, b / 255.0, a / 255.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void glColor4ubv(const GLubyte* v)
|
void glColor4ubv(const GLubyte* v)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue