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:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user