adding stb_truetype

This commit is contained in:
kbz_8
2023-04-07 13:47:22 +02:00
parent 8ae152e67a
commit f6c6b5e018
4 changed files with 22638 additions and 5 deletions

View File

@@ -6,7 +6,7 @@
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/04/06 16:24:11 by maldavid #+# #+# */
/* Updated: 2023/04/06 16:41:09 by maldavid ### ########.fr */
/* Updated: 2023/04/07 00:11:25 by maldavid ### ########.fr */
/* */
/* ************************************************************************** */
@@ -16,6 +16,8 @@
#include <renderer/renderer.h>
#include <renderer/images/texture.h>
#include <string>
#include <stb_truetype.h>
#include <cstdint>
namespace mlx
{
@@ -31,7 +33,9 @@ namespace mlx
~TextPutPipeline() = default;
private:
uint8_t _ttf_buffer[1 << 20];
stbtt_bakedchar _cdata[96];
Texture _atlas;
};
}