/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* TextureRegistry.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: maldavid +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/01/11 00:56:15 by maldavid #+# #+# */ /* Updated: 2024/07/05 13:43:48 by maldavid ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef __MLX_TEXTURE_MANAGER__ #define __MLX_TEXTURE_MANAGER__ #include namespace mlx { class TextureRegistry { public: TextureRegistry() = default; inline void Clear(); inline std::pair, bool> RegisterTexture(NonOwningPtr texture, int x, int y); inline bool IsTextureKnown(NonOwningPtr texture) noexcept; inline void EraseTextures(NonOwningPtr texture); ~TextureRegistry() = default; private: std::unordered_set m_texture_descriptors; }; } #include #endif