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;