// Copyright (C) 2015 Jérôme Leclercq // This file is part of the "Nazara Engine - Utility module" // For conditions of distribution and use, see copyright notice in Config.hpp #pragma once #ifndef NAZARA_VERTEXMAPPER_HPP #define NAZARA_VERTEXMAPPER_HPP #include #include #include #include #include class NzSubMesh; class NAZARA_UTILITY_API NzVertexMapper { public: NzVertexMapper(NzSubMesh* subMesh, nzBufferAccess access = nzBufferAccess_ReadWrite); NzVertexMapper(NzVertexBuffer* vertexBuffer, nzBufferAccess access = nzBufferAccess_ReadWrite); ~NzVertexMapper(); template NzSparsePtr GetComponentPtr(nzVertexComponent component); void Unmap(); private: NzBufferMapper m_mapper; }; #include #endif // NAZARA_VERTEXMAPPER_HPP