// Copyright (C) 2017 Jérôme Leclercq // This file is part of the "Nazara Engine - Platform module" // For conditions of distribution and use, see copyright notice in Config.hpp #include #include namespace Nz { Icon::Icon() : m_impl(nullptr) { } inline Icon::Icon(const Image& icon) { ErrorFlags flags(ErrorFlag_ThrowException, true); Create(icon); } Icon::~Icon() { Destroy(); } bool Icon::IsValid() const { return m_impl != nullptr; } template IconRef Icon::New(Args&&... args) { std::unique_ptr object(new Icon(std::forward(args)...)); object->SetPersistent(false); return object.release(); } } #include