mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
examples: use fontstash wrapper calls (#12718)
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
module sfons
|
||||
|
||||
fn C.sfons_create(width int, height int, flags int) &C.FONScontext
|
||||
fn C.sfons_destroy(ctx &C.FONScontext)
|
||||
import fontstash
|
||||
|
||||
fn C.sfons_create(width int, height int, flags int) &fontstash.Context
|
||||
fn C.sfons_destroy(ctx &fontstash.Context)
|
||||
fn C.sfons_rgba(r byte, g byte, b byte, a byte) u32
|
||||
fn C.sfons_flush(ctx &C.FONScontext)
|
||||
fn C.sfons_flush(ctx &fontstash.Context)
|
||||
|
||||
Reference in New Issue
Block a user