| Rev | Line | |
|---|
| [10672] | 1 | /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield |
|---|
| 2 | * |
|---|
| 3 | * This library is open source and may be redistributed and/or modified under |
|---|
| 4 | * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or |
|---|
| 5 | * (at your option) any later version. The full license is in LICENSE file |
|---|
| 6 | * included with this distribution, and on the openscenegraph.org website. |
|---|
| 7 | * |
|---|
| 8 | * This library is distributed in the hope that it will be useful, |
|---|
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 11 | * OpenSceneGraph Public License for more details. |
|---|
| 12 | */ |
|---|
| 13 | #ifndef OSG_STATEATTRIBUTECALLBACK |
|---|
| 14 | #define OSG_STATEATTRIBUTECALLBACK 1 |
|---|
| 15 | |
|---|
| 16 | #include <osg/Export> |
|---|
| 17 | #include <osg/Object> |
|---|
| 18 | |
|---|
| 19 | namespace osg { |
|---|
| 20 | |
|---|
| 21 | class StateAttribute; |
|---|
| 22 | class NodeVisitor; |
|---|
| 23 | |
|---|
| 24 | class OSG_EXPORT StateAttributeCallback : public virtual osg::Object |
|---|
| 25 | { |
|---|
| 26 | public: |
|---|
| 27 | StateAttributeCallback() {} |
|---|
| 28 | |
|---|
| 29 | StateAttributeCallback(const StateAttributeCallback&,const CopyOp&) {} |
|---|
| 30 | |
|---|
| 31 | META_Object(osg,StateAttributeCallback); |
|---|
| 32 | |
|---|
| 33 | /** do customized update code.*/ |
|---|
| 34 | virtual void operator () (StateAttribute*, NodeVisitor*) {} |
|---|
| 35 | }; |
|---|
| 36 | |
|---|
| 37 | } |
|---|
| 38 | |
|---|
| 39 | #endif |
|---|