fixing compilation issues

This commit is contained in:
2024-09-05 00:41:52 +02:00
parent 8ad6d84bd2
commit 8888bd03d8
23 changed files with 140 additions and 59 deletions

25
runtime/Includes/Graphics/PutPixelManager.h git.filemode.normal_file
View File

@@ -0,0 +1,25 @@
#ifndef __MLX_PUT_PIXEL_MANAGER__
#define __MLX_PUT_PIXEL_MANAGER__
#include <Renderer/Image.h>
namespace mlx
{
class PutPixelManager
{
public:
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, std::uint64_t z, std::uint32_t color);
void ResetRenderData();
~PutPixelManager();
private:
std::map<std::uint64_t, Texture> m_textures;
NonOwningPtr<class Renderer> p_renderer;
};
}
#endif

View File

@@ -1,6 +1,7 @@
#ifndef __MLX_SCENE__
#define __MLX_SCENE__
#include <Renderer/Renderer.h>
#include <Graphics/Sprite.h>
#include <Renderer/ViewerData.h>