// Copyright (C) 2015 Jérôme Leclercq // This file is part of the "Nazara Engine - Core module" // For conditions of distribution and use, see copyright notice in Config.hpp #pragma once #ifndef NAZARA_INITIALIZER_HPP #define NAZARA_INITIALIZER_HPP #include template class NzInitializer { public: NzInitializer(bool initialize = true); ~NzInitializer(); bool Initialize(); bool IsInitialized() const; void Uninitialize(); operator bool() const; private: bool m_initialized; }; #include #endif // NAZARA_INITIALIZER_HPP