diff --git a/GL/immediate.c b/GL/immediate.c index 77b1919..d95c887 100644 --- a/GL/immediate.c +++ b/GL/immediate.c @@ -131,6 +131,13 @@ void APIENTRY glColor3ub(GLubyte red, GLubyte green, GLubyte blue) { COLOR[3] = 255; } +void APIENTRY glColor3ubv(const GLubyte *v) { + COLOR[0] = v[0]; + COLOR[1] = v[1]; + COLOR[2] = v[2]; + COLOR[3] = 255; +} + void APIENTRY glColor3fv(const GLfloat* v) { COLOR[0] = (GLubyte)(v[0] * 255); COLOR[1] = (GLubyte)(v[1] * 255); diff --git a/include/gl.h b/include/gl.h index bb9c52c..b0b5c44 100644 --- a/include/gl.h +++ b/include/gl.h @@ -417,6 +417,7 @@ GLAPI void APIENTRY glColor1ui(GLuint argb); GLAPI void APIENTRY glColor4ub(GLubyte r, GLubyte g, GLubyte b, GLubyte a); GLAPI void APIENTRY glColor3f(GLfloat r, GLfloat g, GLfloat b); GLAPI void APIENTRY glColor3ub(GLubyte r, GLubyte g, GLubyte b); +GLAPI void APIENTRY glColor3ubv(const GLubyte *v); GLAPI void APIENTRY glColor3fv(const GLfloat *rgb); GLAPI void APIENTRY glColor4f(GLfloat r, GLfloat g, GLfloat b, GLfloat a); GLAPI void APIENTRY glColor4fv(const GLfloat *rgba);