Support retrieving the underlying pixmap from a texture atlas

This commit is contained in:
Nikita Lisitsa 2023-06-12 01:36:23 +03:00
parent 18c49f7740
commit 95dc09d7a3

View file

@ -19,6 +19,8 @@ namespace psemek::gfx
texture_2d & texture() { return texture_; }
texture_2d const & texture() const { return texture_; }
util::array<Pixel, 2> const & pixmap() const { return atlas_.array(); }
std::pair<texture_view, bool> insert(Key const & key, util::array<Pixel, 2> const & data);
texture_view find(Key const & key) const;
texture_view at(Key const & key) const;