diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-06 08:10:44 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-06 08:10:44 +0200 |
| commit | ffe92653a7ec4138aa39d38fe8c68d0f0682f062 (patch) | |
| tree | 6e926620a7bed5f68daa65b00e5d70977b94ecda /tile-atlas.hpp | |
| parent | 66ee29df9c19e35b4c126e12e48bc144fe72eb22 (diff) | |
a
Diffstat (limited to 'tile-atlas.hpp')
| -rw-r--r-- | tile-atlas.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tile-atlas.hpp b/tile-atlas.hpp index f2cacf09..759cd6c7 100644 --- a/tile-atlas.hpp +++ b/tile-atlas.hpp @@ -1,7 +1,7 @@ #pragma once #include "compat/assert.hpp" #include <Magnum/Magnum.h> -#include <Magnum/GL/Texture.h> +#include <Magnum/GL/RectangleTexture.h> #include <array> #include <string> @@ -21,11 +21,11 @@ struct tile_atlas final std::size_t size() const { return (std::size_t)dims_.product(); } Vector2i tile_size() const { return size_ / dims_; } Vector2i dimensions() const { return dims_; } - GL::Texture2D& texture() { return tex_; } + GL::RectangleTexture& texture() { return tex_; } std::string name() const { return name_; } private: - GL::Texture2D tex_; + GL::RectangleTexture tex_; std::string name_; Vector2i size_, dims_; }; |
