Added Translatef, Scalef, Rotatef methods, and fixed Color4f method.

This commit is contained in:
Robert Osfield
2009-10-21 16:42:12 +00:00
parent b0db1a6171
commit 9b04a9379b

View File

@@ -50,6 +50,10 @@ class OSG_EXPORT GLBeginEndAdapter
void LoadMatrixd(const GLdouble* m);
void MultMatrixd(const GLdouble* m);
void Translatef(GLfloat x, GLfloat y, GLfloat z) { Translated(x,y,z); }
void Scalef(GLfloat x, GLfloat y, GLfloat z) { Scaled(x,y,z); }
void Rotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z) { Rotated(angle,x,y,z); }
void Translated(GLdouble x, GLdouble y, GLdouble z);
void Scaled(GLdouble x, GLdouble y, GLdouble z);
void Rotated(GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
@@ -59,7 +63,7 @@ class OSG_EXPORT GLBeginEndAdapter
void Color4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
{
_normalAssigned = true;
_colorAssigned = true;
_color.set(red,green,blue,alpha);
}