10 #ifndef DtLightManagerStateAttribute_H_
11 #define DtLightManagerStateAttribute_H_
17 #include <osg/StateAttribute>
34 const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY):
43 virtual void apply(osg::State& state)
const;
51 virtual osg::Object*
clone(
const osg::CopyOp& copyop)
const
67 return "DtLightManagerStateAttribute";
72 return (osg::StateAttribute::Type)1000;
75 virtual bool getModeUsage(osg::StateAttribute::ModeUsage& usage)
const
77 for (
int lightNum = 1; lightNum < 8; lightNum++)
79 usage.usesMode(GL_LIGHT0 + lightNum);