mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-12 07:03:34 +00:00
adding texture atlas class
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user