// 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_PARTICLECONTROLLER_HPP #define NAZARA_PARTICLECONTROLLER_HPP #include #include #include #include #include class NzParticleController; class NzParticleMapper; class NzParticleSystem; using NzParticleControllerConstRef = NzObjectRef; using NzParticleControllerLibrary = NzObjectLibrary; using NzParticleControllerRef = NzObjectRef; class NAZARA_API NzParticleController : public NzRefCounted { friend NzParticleControllerLibrary; friend class NzGraphics; public: NzParticleController() = default; NzParticleController(const NzParticleController& controller); virtual ~NzParticleController(); virtual void Apply(NzParticleSystem& system, NzParticleMapper& mapper, unsigned int startId, unsigned int endId, float elapsedTime) = 0; // Signals: NazaraSignal(OnParticleControllerRelease, const NzParticleController*); //< Args: me private: static bool Initialize(); static void Uninitialize(); static NzParticleControllerLibrary::LibraryMap s_library; }; #endif // NAZARA_PARTICLECONTROLLER_HPP