mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-11 14:43:34 +00:00
working on code refactor
This commit is contained in:
36
runtime/Includes/Core/ImagesRegistry.h
git.filemode.normal_file
36
runtime/Includes/Core/ImagesRegistry.h
git.filemode.normal_file
@@ -0,0 +1,36 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ImagesRegistry.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/04/03 15:11:47 by maldavid #+# #+# */
|
||||
/* Updated: 2024/04/21 20:31:00 by maldavid ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef __MLX_CORE_IMAGES_REGISTRY__
|
||||
#define __MLX_CORE_IMAGES_REGISTRY__
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
class ImageRegistry
|
||||
{
|
||||
public:
|
||||
ImageRegistry() = default;
|
||||
|
||||
inline void RegisterTexture(NonOwningPtr<class Texture> texture);
|
||||
inline void UnregisterTexture(NonOwningPtr<class Texture> texture);
|
||||
inline bool IsTextureKnown(NonOwningPtr<class Texture> texture);
|
||||
|
||||
~ImageRegistry() = default;
|
||||
|
||||
private:
|
||||
std::unordered_set<NonOwningPtr<class Texture>> m_textures_registry;
|
||||
};
|
||||
}
|
||||
|
||||
#include <Core/ImagesRegistry.inl>
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user