Module sokol.sfons stdlib

sokol.sfons
Version:
0.3.3
License:
MIT
Dependencies from vmod:
0
Imports:
3
Imported by:
2
Repository:
OS-specific
Show selected OS-specific symbols.
Backend-specific
Show selected Backend-specific symbols.

Dependencies defined in v.mod

This section is empty.

Imports

Imported by

  • Standard Library

  • Local Modules

Aliases

This section is empty.

Constants

This section is empty.

Sum types

This section is empty.

Functions

#fn create

inline
fn create(width int, height int, flags int) &fontstash.Context

create a new Context/font atlas, for rendering glyphs, given its dimensions width and height

#fn destroy

inline
fn destroy(ctx &fontstash.Context)

#fn flush

inline
fn flush(ctx &fontstash.Context)

#fn rgba

inline
fn rgba(r u8, g u8, b u8, a u8) u32

Structs

#struct C.sfons_allocator_t

typedef
pub struct C.sfons_allocator_t {
pub:
	alloc     memory.FnAllocatorAlloc
	free      memory.FnAllocatorFree
	user_data voidptr
}

#struct C.sfons_desc_t

typedef
pub struct C.sfons_desc_t {
pub:
	width     int // initial width of font atlas texture (default: 512, must be power of 2)
	height    int // initial height of font atlas texture (default: 512, must be power of 2)
	allocator C.sfons_allocator_t // optional memory allocation overrides
}

Interfaces

This section is empty.

Enums

This section is empty.