Skip to content

Instantly share code, notes, and snippets.

View caquillo07's full-sized avatar

Hector Mejia caquillo07

View GitHub Profile
@Lain62
Lain62 / sdl3stbtruetype-example.odin
Last active February 19, 2025 13:40
A quick guide on how to set up stb truetype(stbtt) with sdl3 on odin
package sdl3stbtruetypeexample
import SDL "vendor:sdl3"
import stbtt "vendor:stb/truetype"
import "core:strings"
Font :: struct {
bitmap: []u8,
packed_char: []stbtt.packedchar,
atlas: ^SDL.Texture,