interreality.org [VOS]
[Home] [About]
[Screenshots]
[Download]
[News]
[Community]
[Documentation] [Manual]
[Bugs & Requests] [Wiki]

/home/tetron/hack/vos/libs/vos/csplugin/voslightmapcache.hh

Go to the documentation of this file.
00001 #ifndef _LIGHTMAPCACHE_H_
00002 #define _LIGHTMAPCACHE_H_
00003 
00004 #include <vos/vos/vos.hh>
00005 #include <crystalspace.h>
00006 
00007 class LightmapCache : public iCacheManager
00008 {
00009 private:
00010   VUtil::vRef<VOS::Property> property;
00011 
00012 public:
00013   SCF_DECLARE_IBASE;
00014 
00015   LightmapCache(VOS::Property* target);
00016   virtual ~LightmapCache() { };
00017   virtual void SetCurrentType (const char* type);
00018 
00019   virtual const char* GetCurrentType () const;
00020 
00021   virtual void SetCurrentScope (const char* scope);
00022 
00023   virtual const char* GetCurrentScope () const;
00024 
00025   virtual bool CacheData (const void* data, size_t size,
00026               const char* type, const char* scope, uint32 id);
00027 
00028   virtual csPtr<iDataBuffer> ReadCache (
00029     const char* type, const char* scope, uint32 id);
00030 
00031   virtual bool ClearCache (const char* type = 0, const char* scope = 0,
00032                const uint32* id = 0);
00033 
00034   virtual void Flush();
00035   virtual void SetReadOnly(bool) { }
00036   virtual bool IsReadOnly() const { return false; }
00037 };
00038 
00039 #endif