JKSV/include/data/DataCommon.hpp
2026-03-20 12:41:04 -04:00

26 lines
630 B
C++

#pragma once
#include "sdl.hpp"
namespace data
{
class DataCommon
{
public:
/// @brief Default
DataCommon() = default;
/// @brief Function to load the icon to a texture.
virtual void load_icon(sdl2::Renderer &renderer) = 0;
/// @brief Returns the icon.
sdl2::SharedTexture &get_icon() { return m_icon; };
/// @brief Sets the icon.
void set_icon(sdl2::SharedTexture &icon) { m_icon = icon; };
protected:
/// @brief Shared texture of the icon.
sdl2::SharedTexture m_icon{};
};
}