Implement glColor3ubv

This commit is contained in:
Luke Benstead 2019-08-20 20:42:29 +01:00
parent b6fccd3148
commit 57f4f62f86
2 changed files with 8 additions and 0 deletions

View File

@ -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);

View File

@ -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);