Changeset 72 for Swollen/swollen/spotlight.h
- Timestamp:
- Dec 22, 2004, 6:48:22 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Swollen/swollen/spotlight.h
r6 r72 32 32 33 33 SpotLight(osg::StateSet* rootStateSet, int num=0); 34 virtual osg::Group* get(){ return _ group; }34 virtual osg::Group* get(){ return _transform; } 35 35 virtual void setPosition(osg::Vec3 v); 36 36 virtual osg::Vec3f* getPosition(){ return _position; } 37 37 void setSpotAngle( float degrees ); 38 void setMatrix( osg::Matrixf matrix ){ _ group->setMatrix( matrix ); }38 void setMatrix( osg::Matrixf matrix ){ _transform->setMatrix( matrix ); } 39 39 void setAmbient( osg::Vec3f v ){ _light->setAmbient(osg::Vec4(v,1)); } 40 40 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(); } 42 42 43 43 44 44 protected: 45 45 46 //osg::Group* _group; 47 osg::MatrixTransform* _group; 46 osg::MatrixTransform* _transform; 48 47 osg::Vec3* _position; 49 48 osg::Vec3* _target;
Note: See TracChangeset
for help on using the changeset viewer.