]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/util/SGSceneFeatures.hxx
Work around apparent OSG 3.2.0 normal binding bug.
[simgear.git] / simgear / scene / util / SGSceneFeatures.hxx
index c38921e8cc222472c9f929fbc47a54ae0685f59a..51261286c5ab0667cb727ed03fe658ac8bfc5e9f 100644 (file)
@@ -46,6 +46,10 @@ public:
 
   void setEnablePointSpriteLights(bool enable)
   { _pointSpriteLights = enable; }
+  bool getEnablePointSpriteLights() const
+  {
+      return _pointSpriteLights;
+  }
   bool getEnablePointSpriteLights(unsigned contextId) const
   {
     if (!_pointSpriteLights)
@@ -70,8 +74,13 @@ public:
       return false;
     return getHaveShaderPrograms(contextId);
   }
+  
+  void setTextureFilter(int max) 
+  { _textureFilter = max; }
+  int getTextureFilter() const
+  { return _textureFilter; }
 
-protected:  
+protected:
   bool getHavePointSprites(unsigned contextId) const;
   bool getHaveFragmentPrograms(unsigned contextId) const;
   bool getHaveVertexPrograms(unsigned contextId) const;
@@ -87,6 +96,7 @@ private:
   bool _shaderLights;
   bool _pointSpriteLights;
   bool _distanceAttenuationLights;
+  int  _textureFilter;
 };
 
 #endif