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