|
@@ -173,12 +173,12 @@ namespace BansheeEngine
|
|
|
/**
|
|
/**
|
|
|
* @copydoc RenderableHandlerCore::initialize
|
|
* @copydoc RenderableHandlerCore::initialize
|
|
|
*/
|
|
*/
|
|
|
- void initialize();
|
|
|
|
|
|
|
+ void initialize() override;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @copydoc CoreObject::syncToCore
|
|
* @copydoc CoreObject::syncToCore
|
|
|
*/
|
|
*/
|
|
|
- void syncToCore(const CoreSyncData& data);
|
|
|
|
|
|
|
+ void syncToCore(const CoreSyncData& data) override;
|
|
|
|
|
|
|
|
UINT32 mRendererId;
|
|
UINT32 mRendererId;
|
|
|
};
|
|
};
|
|
@@ -200,64 +200,76 @@ namespace BansheeEngine
|
|
|
*/
|
|
*/
|
|
|
SPtr<RenderableHandlerCore> getCore() const;
|
|
SPtr<RenderableHandlerCore> getCore() const;
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @brief Returns the hash value that can be used to identify if the internal data needs an update.
|
|
|
|
|
+ */
|
|
|
|
|
+ UINT32 _getLastModifiedHash() const { return mLastUpdateHash; }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @brief Sets the hash value that can be used to identify if the internal data needs an update.
|
|
|
|
|
+ */
|
|
|
|
|
+ void _setLastModifiedHash(UINT32 hash) { mLastUpdateHash = hash; }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* @brief Creates a new renderable handler instance.
|
|
* @brief Creates a new renderable handler instance.
|
|
|
*/
|
|
*/
|
|
|
static RenderableHandlerPtr create();
|
|
static RenderableHandlerPtr create();
|
|
|
|
|
|
|
|
protected:
|
|
protected:
|
|
|
- RenderableHandler() { }
|
|
|
|
|
|
|
+ RenderableHandler();
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @copydoc CoreObject::createCore
|
|
* @copydoc CoreObject::createCore
|
|
|
*/
|
|
*/
|
|
|
- SPtr<CoreObjectCore> createCore() const;
|
|
|
|
|
|
|
+ SPtr<CoreObjectCore> createCore() const override;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @copydoc CoreObject::markCoreDirty
|
|
* @copydoc CoreObject::markCoreDirty
|
|
|
*/
|
|
*/
|
|
|
- void _markCoreDirty(RenderableDirtyFlag flag = RenderableDirtyFlag::Everything);
|
|
|
|
|
|
|
+ void _markCoreDirty(RenderableDirtyFlag flag = RenderableDirtyFlag::Everything) override;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @copydoc IResourceListener::markResourcesDirty
|
|
* @copydoc IResourceListener::markResourcesDirty
|
|
|
*/
|
|
*/
|
|
|
- void _markResourcesDirty();
|
|
|
|
|
|
|
+ void _markResourcesDirty() override;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @copydoc CoreObject::syncToCore
|
|
* @copydoc CoreObject::syncToCore
|
|
|
*/
|
|
*/
|
|
|
- CoreSyncData syncToCore(FrameAlloc* allocator);
|
|
|
|
|
|
|
+ CoreSyncData syncToCore(FrameAlloc* allocator) override;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @copydoc CoreObject::getCoreDependencies
|
|
* @copydoc CoreObject::getCoreDependencies
|
|
|
*/
|
|
*/
|
|
|
- void getCoreDependencies(Vector<SPtr<CoreObject>>& dependencies);
|
|
|
|
|
|
|
+ void getCoreDependencies(Vector<SPtr<CoreObject>>& dependencies) override;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @copydoc IResourceListener::getResourceDependencies
|
|
* @copydoc IResourceListener::getResourceDependencies
|
|
|
*/
|
|
*/
|
|
|
- void getListenerResources(Vector<HResource>& resources);
|
|
|
|
|
|
|
+ void getListenerResources(Vector<HResource>& resources) override;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @copydoc IResourceListener::notifyResourceLoaded
|
|
* @copydoc IResourceListener::notifyResourceLoaded
|
|
|
*/
|
|
*/
|
|
|
- void notifyResourceLoaded(const HResource& resource) { markCoreDirty(); }
|
|
|
|
|
|
|
+ void notifyResourceLoaded(const HResource& resource) override { markCoreDirty(); }
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @copydoc IResourceListener::notifyResourceDestroyed
|
|
* @copydoc IResourceListener::notifyResourceDestroyed
|
|
|
*/
|
|
*/
|
|
|
- void notifyResourceDestroyed(const HResource& resource) { markCoreDirty(); }
|
|
|
|
|
|
|
+ void notifyResourceDestroyed(const HResource& resource) override { markCoreDirty(); }
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @copydoc IResourceListener::notifyResourceChanged
|
|
* @copydoc IResourceListener::notifyResourceChanged
|
|
|
*/
|
|
*/
|
|
|
- void notifyResourceChanged(const HResource& resource) { markCoreDirty(); }
|
|
|
|
|
|
|
+ void notifyResourceChanged(const HResource& resource) override { markCoreDirty(); }
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief Creates a new renderable handler instance without initializing it.
|
|
* @brief Creates a new renderable handler instance without initializing it.
|
|
|
*/
|
|
*/
|
|
|
static RenderableHandlerPtr createEmpty();
|
|
static RenderableHandlerPtr createEmpty();
|
|
|
|
|
|
|
|
|
|
+ UINT32 mLastUpdateHash;
|
|
|
|
|
+
|
|
|
/************************************************************************/
|
|
/************************************************************************/
|
|
|
/* RTTI */
|
|
/* RTTI */
|
|
|
/************************************************************************/
|
|
/************************************************************************/
|