Added support for Vec4ubArray colour arrays

This commit is contained in:
Robert Osfield
2009-10-23 12:22:18 +00:00
parent 7c1b3b8552
commit bab4c272d5
2 changed files with 3 additions and 0 deletions

View File

@@ -72,6 +72,7 @@ class OSG_EXPORT GLBeginEndAdapter
}
void Color4fv(const GLfloat* c) { Color4f(c[0], c[1], c[2], c[3]); }
void Color4ubv(const GLubyte* c) { const float div = 1.0f/255.0f; Color4f(float(c[0])*div, float(c[1])*div, float(c[2])*div, float(c[3])*div); }
void Normal3f(GLfloat x, GLfloat y, GLfloat z)
{