X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmodel.hpp;h=096e1cfd3aff2738f6288a6909c557d227ed3909;hb=83ed3de28841d1eecfca39ff540e804cf6809b32;hp=557b4acc6ebe4cb1092a95361cb10d14709703c3;hpb=15ff5ed48855c6bd09bc8f5152f46065484c1e94;p=blank.git diff --git a/src/model.hpp b/src/model.hpp index 557b4ac..096e1cf 100644 --- a/src/model.hpp +++ b/src/model.hpp @@ -29,7 +29,7 @@ public: Normals normals; Indices indices; - void Clear() { + void Clear() noexcept { vertices.clear(); colors.clear(); normals.clear(); @@ -46,18 +46,18 @@ public: }; public: - Model(); - ~Model(); + Model() noexcept; + ~Model() noexcept; Model(const Model &) = delete; Model &operator =(const Model &) = delete; - Model(Model &&); - Model &operator =(Model &&); + Model(Model &&) noexcept; + Model &operator =(Model &&) noexcept; - void Update(const Buffer &); + void Update(const Buffer &) noexcept; - void Draw() const; + void Draw() const noexcept; private: enum Attribute { @@ -96,7 +96,7 @@ public: Lights lights; Indices indices; - void Clear() { + void Clear() noexcept { vertices.clear(); colors.clear(); lights.clear(); @@ -113,18 +113,18 @@ public: }; public: - BlockModel(); - ~BlockModel(); + BlockModel() noexcept; + ~BlockModel() noexcept; BlockModel(const BlockModel &) = delete; BlockModel &operator =(const Model &) = delete; - BlockModel(BlockModel &&); - BlockModel &operator =(BlockModel &&); + BlockModel(BlockModel &&) noexcept; + BlockModel &operator =(BlockModel &&) noexcept; - void Update(const Buffer &); + void Update(const Buffer &) noexcept; - void Draw() const; + void Draw() const noexcept; private: enum Attribute { @@ -159,21 +159,21 @@ public: Indices indices; public: - OutlineModel(); - ~OutlineModel(); + OutlineModel() noexcept; + ~OutlineModel() noexcept; OutlineModel(const OutlineModel &) = delete; OutlineModel &operator =(const OutlineModel &) = delete; - void Invalidate() { dirty = true; } + void Invalidate() noexcept { dirty = true; } - void Clear(); + void Clear() noexcept; void Reserve(int vtx_count, int idx_count); - void Draw(); + void Draw() noexcept; private: - void Update(); + void Update() noexcept; private: enum Attribute {