adding texture atlas class

This commit is contained in:
2023-04-07 17:27:23 +02:00
parent 10ff1acd89
commit 77e8672754
9 changed files with 5230 additions and 22643 deletions

View File

@@ -6,24 +6,33 @@
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/04/06 16:41:13 by maldavid #+# #+# */
/* Updated: 2023/04/07 00:13:50 by maldavid ### ########.fr */
/* Updated: 2023/04/07 17:24:33 by maldavid ### ########.fr */
/* */
/* ************************************************************************** */
#include <renderer/text_pipeline.h>
#include <fstream>
#define STB_TRUETYPE_IMPLEMENTATION
#include <std_truetype.h>
#include <stb_truetype.h>
namespace mlx
{
void TextPutPipeline::init(Renderer& renderer) noexcept
static uint8_t ttf_buffer[1 << 20];
static uint8_t tmp_bitmap[512 * 512];
void TextPutPipeline::init(Renderer* renderer) noexcept
{
_renderer = renderer;
}
void TextPutPipeline::put(int x, int y, int color, std::string str)
{
}
void TextPutPipeline::destroy() noexcept
{
_atlas.destroy();
}
}