mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-10 22:23:34 +00:00
21 lines
458 B
C++
21 lines
458 B
C++
#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();
|
|
}
|
|
}
|