Changeset 10924 for OpenSceneGraph/trunk/include/osg/Image
- Timestamp:
- 01/07/10 13:14:47 (3 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osg/Image (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/Image
r10866 r10924 20 20 #include <osg/Vec4> 21 21 #include <osg/FrameStamp> 22 #include <osg/StateAttribute> 22 23 23 24 #include <string> … … 321 322 /** Get the const PixelBufferObject.*/ 322 323 const PixelBufferObject* getPixelBufferObject() const { return dynamic_cast<const PixelBufferObject*>(_bufferObject.get()); } 323 324 325 /** return whether the update(NodeVisitor* nv) should be required on each frame to enable proper working of osg::Image.*/ 326 virtual bool requiresUpdateCall() const { return false; } 327 328 /** update method for osg::Image subclasses that update themselves during the update traversal.*/ 324 329 virtual void update(NodeVisitor* /*nv*/) {} 330 331 /** convience update callback class that can be attached to StateAttribute (such as Textures) to ensure 332 * that the Image::update(NodeVisitor*) method is called during the update traversal. This callback 333 * is automatically attached when Image::requiresUpdateCall() is true (it's false by default.) 334 */ 335 struct OSG_EXPORT UpdateCallback : public osg::StateAttributeCallback 336 { 337 virtual void operator () (osg::StateAttribute* attr, osg::NodeVisitor* nv); 338 }; 325 339 326 340 /** method for sending pointer events to images that are acting as front ends to interactive surfaces such as a vnc or browser window. Return true if handled. */
