]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/tgdb/pt_lights.hxx
Only disable display lists if using VBOs.
[simgear.git] / simgear / scene / tgdb / pt_lights.hxx
index af066f808cb75fead5e890f017a3f1517c1ea0bf..863328dc60bffafcd90500e4aca615bcc8e854e7 100644 (file)
@@ -40,6 +40,7 @@
 
 #include <simgear/math/sg_types.hxx>
 #include <simgear/scene/material/matlib.hxx>
+#include <simgear/scene/util/SGReaderWriterOptions.hxx>
 #include <simgear/scene/util/SGSceneFeatures.hxx>
 
 #include "SGLightBin.hxx"
@@ -85,15 +86,19 @@ public:
           const SGVec4f& red, const SGVec4f& white);
 
   static osg::Node*
-  getSequenced(const SGDirectionalLightBin& lights);
+  getSequenced(const SGDirectionalLightBin& lights, const simgear::SGReaderWriterOptions* options);
 
   static osg::Node*
-  getOdal(const SGLightBin& lights);
+  getOdal(const SGLightBin& lights, const simgear::SGReaderWriterOptions* options);
 
   static osg::Node*
-  getHoldShort(const SGDirectionalLightBin& lights);
+  getHoldShort(const SGDirectionalLightBin& lights, const simgear::SGReaderWriterOptions* options);
+
+  static osg::Node*
+  getGuard(const SGDirectionalLightBin& lights, const simgear::SGReaderWriterOptions* options);
 };
 
 simgear::Effect* getLightEffect(float size, const osg::Vec3& attenuation,
-                                float minSize, float maxSize, bool directional);
+                                float minSize, float maxSize, bool directional,
+                                const simgear::SGReaderWriterOptions* options);
 #endif // _SG_PT_LIGHTS_HXX