#include <simgear/props/props.hxx>
#include <simgear/structure/SGSharedPtr.hxx>
+#include <simgear/scene/util/SGSceneFeatures.hxx>
#include "matmodel.hxx"
class SGMaterialGlyph;
-class SGTextureFilterListener {
-private:
- static int filter;
-
- SGTextureFilterListener() {
- }
-
-public:
- static int getFilter();
- static void setFilter(int filt);
- };
-
/**
* A material in the scene graph.
*
// Public methods.
////////////////////////////////////////////////////////////////////
- /**
- * Force the texture to load if it hasn't already.
- *
- * @return true if the texture loaded, false if it was loaded
- * already.
- */
- bool load_texture (int n = -1);
-
/**
* Get the textured state.
*/
- osg::StateSet *get_state (int n = -1) const;
+ osg::StateSet *get_state (int n = -1);
/**
const SGMaterial* getMaterial() const
{ return mMaterial; }
private:
- SGSharedPtr<const SGMaterial> mMaterial;
+ // this cannot be an SGSharedPtr since that would create a cicrular reference
+ // making it impossible to ever free the space needed by SGMaterial
+ const SGMaterial* mMaterial;
};
+void
+SGSetTextureFilter( int max);
+
+int
+SGGetTextureFilter();
+
#endif // _SG_MAT_HXX