Upgrade Platform

This commit is contained in:
Jérôme Leclercq
2021-05-24 21:06:55 +02:00
parent 8b0b5295f7
commit ba7c56ddfa
20 changed files with 322 additions and 389 deletions

View File

@@ -8,25 +8,28 @@
#define NAZARA_ICONIMPL_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Core/MovablePtr.hpp>
#include <Nazara/Utility/Image.hpp>
#include <SDL2/SDL_surface.h>
namespace Nz
{
class Image;
class IconImpl
{
public:
bool Create(const Image& image);
void Destroy();
IconImpl(const Image& image);
IconImpl(const IconImpl&) = delete;
IconImpl(IconImpl&&) noexcept = default;
~IconImpl();
SDL_Surface* GetIcon();
private:
IconImpl& operator=(const IconImpl&) = default;
IconImpl& operator=(IconImpl&&) noexcept = default;
SDL_Surface* m_icon = nullptr;
private:
Image m_iconImage;
MovablePtr<SDL_Surface> m_icon;
};
}