mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 23:56:06 +00:00
LibGL: Implement glColor3fv
This commit is contained in:
parent
296452a981
commit
90e6b9d453
Notes:
sideshowbarker
2024-07-18 07:02:13 +09:00
Author: https://github.com/Quaker762
Commit: 90e6b9d453
Pull-request: https://github.com/SerenityOS/serenity/pull/9379
Reviewed-by: https://github.com/sunverwerth ✅
2 changed files with 5 additions and 0 deletions
|
@ -243,6 +243,7 @@ GLAPI void glClear(GLbitfield mask);
|
||||||
GLAPI void glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
|
GLAPI void glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
|
||||||
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 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,6 +14,10 @@ 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)
|
||||||
|
{
|
||||||
|
g_gl_context->gl_color(v[0], v[1], v[2], 1.0);
|
||||||
|
}
|
||||||
|
|
||||||
void glColor4f(GLfloat r, GLfloat g, GLfloat b, GLfloat a)
|
void glColor4f(GLfloat r, GLfloat g, GLfloat b, GLfloat a)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue