// Copyright (C) 2017 Jérôme Leclercq // This file is part of the "Nazara Engine - Graphics module" // For conditions of distribution and use, see copyright notice in Config.hpp #pragma once #ifndef NAZARA_GRAPHICALMESH_HPP #define NAZARA_GRAPHICALMESH_HPP #include #include #include #include #include namespace Nz { class NAZARA_GRAPHICS_API GraphicalMesh { public: GraphicalMesh(const Mesh& mesh); GraphicalMesh(const GraphicalMesh&) = delete; GraphicalMesh(GraphicalMesh&&) noexcept = default; ~GraphicalMesh() = default; inline const std::shared_ptr& GetIndexBuffer(std::size_t subMesh) const; inline std::size_t GetIndexCount(std::size_t subMesh) const; inline const std::shared_ptr& GetVertexBuffer(std::size_t subMesh) const; inline const std::shared_ptr& GetVertexDeclaration(std::size_t subMesh) const; inline std::size_t GetSubMeshCount() const; GraphicalMesh& operator=(const GraphicalMesh&) = delete; GraphicalMesh& operator=(GraphicalMesh&&) noexcept = default; private: struct GraphicalSubMesh { std::shared_ptr indexBuffer; std::shared_ptr vertexBuffer; std::size_t indexCount; std::shared_ptr vertexDeclaration; }; std::vector m_subMeshes; }; } #include #endif // NAZARA_GRAPHICALMESH_HPP