From acd6a229dfc62879ffb5ed2cb95e54fc3fd0d94c Mon Sep 17 00:00:00 2001 From: Riyyi Date: Sat, 9 Jan 2021 23:37:51 +0100 Subject: [PATCH] Add inline to more functions --- inferno/src/inferno/render/buffer.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/inferno/src/inferno/render/buffer.h b/inferno/src/inferno/render/buffer.h index 85561f6..1d6b08d 100644 --- a/inferno/src/inferno/render/buffer.h +++ b/inferno/src/inferno/render/buffer.h @@ -67,10 +67,10 @@ namespace Inferno { inline uint32_t getStride() const { return m_stride; } // Iterators - std::vector::iterator begin() { return m_elements.begin(); } - std::vector::iterator end() { return m_elements.end(); } - std::vector::const_iterator begin() const { return m_elements.begin(); } - std::vector::const_iterator end() const { return m_elements.end(); } + inline std::vector::iterator begin() { return m_elements.begin(); } + inline std::vector::iterator end() { return m_elements.end(); } + inline std::vector::const_iterator begin() const { return m_elements.begin(); } + inline std::vector::const_iterator end() const { return m_elements.end(); } protected: void calculateOffsetsAndStride(); @@ -135,8 +135,8 @@ namespace Inferno { void addVertexBuffer(const std::shared_ptr& vertexBuffer); void setIndexBuffer(const std::shared_ptr& indexBuffer); - const std::vector>& getVertexBuffers() const { return m_vertexBuffers; } - const std::shared_ptr& getIndexBuffer() const { return m_indexBuffer; } + inline const std::vector>& getVertexBuffers() const { return m_vertexBuffers; } + inline const std::shared_ptr& getIndexBuffer() const { return m_indexBuffer; } private: uint32_t m_id;