# HG changeset patch # User thebastion@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1222558397 0 # Node ID 2cc01d9433ab4c6926fab4e5a63f3a2aa3bb913f # Parent 19ddb7411f2558ec7ac16c161f0668164e1239a1 Minor Changes to SWIG-Interface diff -r 19ddb7411f25 -r 2cc01d9433ab engine/core/util/resource/resource.i --- a/engine/core/util/resource/resource.i Sat Sep 27 20:33:30 2008 +0000 +++ b/engine/core/util/resource/resource.i Sat Sep 27 23:33:17 2008 +0000 @@ -58,6 +58,7 @@ virtual void setResourceFile(const std::string& filename) = 0; virtual int getPoolId() = 0; virtual void setPoolId(int poolid) = 0; + virtual unsigned int getRefCount() = 0; }; %warnfilter(473) ResourceLoader; // filter out "returning a pointer or reference in a director method is not recommended" @@ -86,6 +87,11 @@ virtual int addResourceFromLocation(const ResourceLocation& loc); virtual int getResourceCount(int status); virtual void addResourceLoader(ResourceLoader* loader); + virtual void release(unsigned int index, bool dec = false); + virtual unsigned int getIndex(const std::string& filename); + virtual IResource& get(unsigned int index, bool inc = false); + virtual void printStatistics(); + private: Pool(); };