Support retrieving the underlying pixmap from a texture atlas
This commit is contained in:
parent
18c49f7740
commit
95dc09d7a3
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue