root/OpenSceneGraph/trunk/include/osg/StateAttributeCallback @ 10672

Revision 10672, 1.2 kB (checked in by robert, 4 years ago)

From Cedric Pinson, new StateAttributeCallback? replacing StateAttribute::Callback

RevLine 
[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
19namespace osg {
20
21class StateAttribute;
22class NodeVisitor;
23
24class 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
Note: See TracBrowser for help on using the browser.