working on text put pipeline

This commit is contained in:
2023-04-06 17:26:19 +02:00
parent b03bd6fe0a
commit bada255057
12 changed files with 125 additions and 108 deletions

View File

@@ -36,6 +36,11 @@ namespace mlx
_pixel_put_pipeline.setPixel(x, y, color);
}
void GraphicsSupport::stringPut(int x, int y, int color, std::string str)
{
_text_put_pipeline.put(x, y, color, str);
}
void GraphicsSupport::texturePut(std::shared_ptr<Texture> texture, int x, int y)
{
_textures_to_render.emplace(texture, x, y);