This commit is contained in:
Kbz-8
2024-10-21 19:45:33 +02:00
parent c7484b771f
commit 8f757cab08
22 changed files with 121 additions and 68 deletions

View File

@@ -11,13 +11,13 @@ namespace mlx
PutPixelManager(NonOwningPtr<class Renderer> renderer) : p_renderer(renderer) {}
// Return a valid pointer when a new texture has been created
NonOwningPtr<Texture> DrawPixel(int x, int y, bool insert_new_texture, std::uint32_t color);
NonOwningPtr<Texture> DrawPixel(int x, int y, std::uint64_t draw_layer, std::uint32_t color);
void ResetRenderData();
~PutPixelManager();
private:
std::list<Texture> m_textures;
std::unordered_map<std::uint64_t, Texture> m_textures;
NonOwningPtr<class Renderer> p_renderer;
};
}