1 // Copyright (C) 2008 Timothy Moore timoore@redhat.com
3 // This program is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU General Public License as
5 // published by the Free Software Foundation; either version 2 of the
6 // License, or (at your option) any later version.
8 // This program is distributed in the hope that it will be useful, but
9 // WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // General Public License for more details.
13 // You should have received a copy of the GNU General Public License
14 // along with this program; if not, write to the Free Software
15 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 #ifndef SIMGEAR_PASS_HXX
18 #define SIMGEAR_PASS_HXX 1
20 #include <osg/ref_ptr>
31 class Pass : public osg::Object
34 META_Object(simgear,Pass);
37 const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY);
38 osg::StateSet* getStateSet() { return _stateSet.get(); }
39 const osg::StateSet* getStateSet() const { return _stateSet.get(); }
40 void setStateSet(osg::StateSet* stateSet) { _stateSet = stateSet; }
41 virtual void resizeGLObjectBuffers(unsigned int maxSize);
42 virtual void releaseGLObjects(osg::State* state = 0) const;
44 osg::ref_ptr<osg::StateSet> _stateSet;