package vendor:stb/easy_font

⌘K
Ctrl+K
or
/

    Index

    Constants (0)

    This section is empty.

    Variables (0)

    This section is empty.

    Procedure Groups (2)

    Types

    Color ¶

    Color :: [4]u8

    Quad ¶

    Quad :: struct #packed {
    	tl: Vertex,
    	tr: Vertex,
    	br: Vertex,
    	bl: Vertex,
    }

    Vertex ¶

    Vertex :: struct {
    	v: [3]f32,
    	c: [4]u8,
    }

    info_struct ¶

    info_struct :: struct {
    	advance: u8,
    	h_seg:   u8,
    	v_seg:   u8,
    }

    Constants

    This section is empty.

    Variables

    This section is empty.

    Procedures

    draw_segs_quad_buffer ¶

    draw_segs_quad_buffer :: proc(
    	x, y:         f32, 
    	segs:         []u8, 
    	vertical:     bool, 
    	c:            [4]u8, 
    	buf:          []Quad, 
    	start_offset: int, 
    	scale:        f32 = f32(1.0), 
    ) -> (quads: int) {…}
     

    Same memory layout, but takes a []quad instead of []byte

    draw_segs_vertex_buffer ¶

    draw_segs_vertex_buffer :: proc(
    	x, y:         f32, 
    	segs:         []u8, 
    	vertical:     bool, 
    	c:            [4]u8, 
    	vbuf:         []u8, 
    	start_offset: int, 
    	scale:        f32 = f32(1.0), 
    ) -> (offset: int) {…}
     

    Compatible with original C API

    font_spacing ¶

    font_spacing :: proc(spacing: f32) {…}

    height ¶

    height :: proc(text: string) -> int {…}
    print_quad_buffer :: proc(
    	x, y:        f32, 
    	text:        string, 
    	color:       [4]u8, 
    	quad_buffer: []Quad, 
    	scale:       f32 = f32(1.0), 
    ) -> (quads: int) {…}
     

    Same memory layout, but takes a []quad instead of []byte

    print_vertex_buffer :: proc(
    	x, y:          f32, 
    	text:          string, 
    	color:         [4]u8, 
    	vertex_buffer: []u8, 
    	scale:         f32 = f32(1.0), 
    ) -> int {…}
     

    Compatible with original C API

    width ¶

    width :: proc(text: string) -> int {…}

    Procedure Groups

    Source Files

    Generation Information

    Generated with odin version dev-2024-11 (vendor "odin") Windows_amd64 @ 2024-11-20 21:11:52.439104100 +0000 UTC