Graphics/Light: Add move constructor/operator

Former-commit-id: d2823b5bae913fc0d218f6aaf067ee29812a6cbf
This commit is contained in:
Lynix 2015-06-30 20:47:39 +02:00
parent bdb6554bc8
commit 2c4a35b2d1
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,7 @@ class NAZARA_GRAPHICS_API NzLight : public NzRenderable
public: public:
NzLight(nzLightType type = nzLightType_Point); NzLight(nzLightType type = nzLightType_Point);
inline NzLight(const NzLight& light); inline NzLight(const NzLight& light);
NzLight(NzLight&& light) = default;
~NzLight() = default; ~NzLight() = default;
void AddToRenderQueue(NzAbstractRenderQueue* renderQueue, const NzMatrix4f& transformMatrix) const override; void AddToRenderQueue(NzAbstractRenderQueue* renderQueue, const NzMatrix4f& transformMatrix) const override;
@ -63,6 +64,7 @@ class NAZARA_GRAPHICS_API NzLight : public NzRenderable
void UpdateBoundingVolume(const NzMatrix4f& transformMatrix) override; void UpdateBoundingVolume(const NzMatrix4f& transformMatrix) override;
NzLight& operator=(const NzLight& light); NzLight& operator=(const NzLight& light);
NzLight& operator=(NzLight&& light) = default;
private: private:
void MakeBoundingVolume() const override; void MakeBoundingVolume() const override;