};
/**
- * Constructor
+ * Construct a new Material.
*/
- Material();
+ static Material* New();
/**
* Destructor
virtual ~Material();
/**
+ * Overriden delete operator
+ * Deletes the material from its global memory pool
+ */
+ void operator delete( void* ptr );
+
+ /**
* Prepare material, check texture loading status, opacity etc
* @param resourceManager for checking texture details and loading status
*/
*/
virtual void ConnectedUniformMapChanged();
+private:
+
+ /**
+ * Protected constructor; See also Material::New()
+ */
+ Material();
+
private: // Data
Shader* mShader;