Changeset 10662

Show
Ignore:
Timestamp:
10/21/09 18:42:12 (5 years ago)
Author:
robert
Message:

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/include/osg/GLBeginEndAdapter

    r10650 r10662  
    5151        void MultMatrixd(const GLdouble* m); 
    5252 
     53        void Translatef(GLfloat x, GLfloat y, GLfloat z) { Translated(x,y,z); } 
     54        void Scalef(GLfloat x, GLfloat y, GLfloat z) { Scaled(x,y,z); } 
     55        void Rotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z) { Rotated(angle,x,y,z); } 
     56 
    5357        void Translated(GLdouble x, GLdouble y, GLdouble z); 
    5458        void Scaled(GLdouble x, GLdouble y, GLdouble z); 
     
    6064        void Color4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) 
    6165        { 
    62             _normalAssigned = true; 
     66            _colorAssigned = true; 
    6367            _color.set(red,green,blue,alpha); 
    6468        }