1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

new gg/freetype modules with sokol/fontstash backends

This commit is contained in:
Alexander Medvednikov
2020-01-21 03:22:18 +01:00
parent 43ba6766ba
commit 0502a54a36
15 changed files with 321 additions and 20 deletions

View File

@@ -8,22 +8,22 @@ const (
)
[inline]
pub fn sfons_create(width int, height int, flags int) &C.FONScontext {
pub fn create(width int, height int, flags int) &C.FONScontext {
return C.sfons_create(width, height, flags)
}
[inline]
pub fn sfons_destroy(ctx &C.FONScontext) {
pub fn destroy(ctx &C.FONScontext) {
C.sfons_destroy(ctx)
}
[inline]
pub fn sfons_rgba(r byte, g byte, b byte, a byte) u32 {
pub fn rgba(r byte, g byte, b byte, a byte) u32 {
return C.sfons_rgba(r, g, b, a)
}
[inline]
pub fn sfons_flush(ctx &C.FONScontext) {
pub fn flush(ctx &C.FONScontext) {
C.sfons_flush(ctx)
}