// Copyright (C) 2015 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_PARTICLEMAPPER_HPP #define NAZARA_PARTICLEMAPPER_HPP #include #include #include #include class NAZARA_GRAPHICS_API NzParticleMapper { public: NzParticleMapper(void* buffer, const NzParticleDeclaration* declaration); ~NzParticleMapper(); template NzSparsePtr GetComponentPtr(nzParticleComponent component); template NzSparsePtr GetComponentPtr(nzParticleComponent component) const; private: const NzParticleDeclaration* m_declaration; nzUInt8* m_ptr; }; #include #endif // NAZARA_PARTICLEMAPPER_HPP