Ignore:
Timestamp:
Dec 22, 2004, 6:48:22 PM (19 years ago)
Author:
darran
Message:
  • work in progress
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Swollen/swollen/spotlight.h

    r6 r72  
    3232
    3333    SpotLight(osg::StateSet* rootStateSet, int num=0);
    34     virtual osg::Group* get(){ return _group; }
     34    virtual osg::Group* get(){ return _transform; }
    3535    virtual void setPosition(osg::Vec3 v);
    3636    virtual osg::Vec3f* getPosition(){ return _position; }
    3737    void setSpotAngle( float degrees );
    38     void setMatrix( osg::Matrixf matrix ){ _group->setMatrix( matrix ); }
     38    void setMatrix( osg::Matrixf matrix ){ _transform->setMatrix( matrix ); }
    3939    void setAmbient( osg::Vec3f v ){ _light->setAmbient(osg::Vec4(v,1)); }
    4040    void setDiffuse( osg::Vec3f v ){ _light->setDiffuse(osg::Vec4(v,1)); }
    41     const osg::Matrix getMatrix(){ return _group->getMatrix(); }
     41    const osg::Matrix getMatrix(){ return _transform->getMatrix(); }
    4242
    4343
    4444protected:
    4545
    46     //osg::Group* _group;
    47     osg::MatrixTransform* _group;
     46    osg::MatrixTransform* _transform;
    4847    osg::Vec3* _position;
    4948    osg::Vec3* _target;
Note: See TracChangeset for help on using the changeset viewer.