package vendor:stb/easy_font

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 "odin" (
	x, y:         f32, 
	segs:         []u8, 
	vertical:     bool, 
	c:            [4]u8, 
	buf:          []Quad, 
	start_offset: int, 
) -> (quads: int) {…}
 

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

draw_segs_vertex_buffer ¶

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

Compatible with original C API

font_spacing ¶

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

height ¶

height :: proc "odin" (str: string) -> (w: int) {…}
print_quad_buffer :: proc "odin" (
	x, y:        f32, 
	text:        string, 
	color:       [4]u8, 
	quad_buffer: []Quad, 
) -> (quads: int) {…}
 

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

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

Compatible with original C API

width ¶

width :: proc "odin" (str: string) -> (w: int) {…}

Procedure Groups

Source Files

Generation Information

Generated with odin version dev-2022-10 (vendor "odin") Windows_amd64 @ 2022-10-05 21:11:47.806812900 +0000 UTC