sdl_runtime_compiler git · main
SDL3 game for running and compiling code at runtime
C++ 72.3% C 26.2%git clone https://git.christianimmanuel.de/sdl-graphics/sdl_runtime_compiler.gitwget https://git.christianimmanuel.de/sdl-graphics/sdl_runtime_compiler/archive/sdl_runtime_compiler.tar.gzsrc/text/mesh.hpp raw
#pragma once
#include <string>
#include "utils/globals.hpp"
namespace
Nimbin
{
struct Vertex
{
Vec3 pos;
Vec3 normal;
};
struct MeshTri
{ int a, b, c; };
struct TextMesh
{
DynArray<Vec3> verts;
DynArray<Vec3> vertex_normals;
DynArray<MeshTri> tris;
DynArray<float> is_front;
bool build(
const std::string& font_path,
const std::string& text,
int size = 64,
float depth = 0.4f,
float scale = 0.003f
);
};
} // namespace Nimbin