mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-11 22:53:34 +00:00
working on code refactor
This commit is contained in:
25
runtime/Includes/Core/ImagesRegistry.inl
git.filemode.normal_file
25
runtime/Includes/Core/ImagesRegistry.inl
git.filemode.normal_file
@@ -0,0 +1,25 @@
|
||||
// This file is a part of Akel
|
||||
// Authors : @kbz_8
|
||||
// Created : 21/04/2024
|
||||
// Updated : 21/04/2024
|
||||
|
||||
#pragma once
|
||||
#include <Core/ImagesRegistry.h>
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
void ImageRegistry::RegisterTexture(NonOwningPtr<class Texture> texture)
|
||||
{
|
||||
m_textures_registry.insert(texture);
|
||||
}
|
||||
|
||||
void ImageRegistry::UnregisterTexture(NonOwningPtr<class Texture> texture)
|
||||
{
|
||||
m_textures_registry.erase(texture);
|
||||
}
|
||||
|
||||
bool ImageRegistry::IsTextureKnown(NonOwningPtr<class Texture> texture)
|
||||
{
|
||||
return m_textures_registry.find(texture) != m_textures_registry.end();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user