pkg/freetype: finish APIs we need

This commit is contained in:
Mitchell Hashimoto
2022-08-28 21:06:36 -07:00
parent 8ef3018189
commit 672f6e720c
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,8 @@
const std = @import("std");
const c = @import("c.zig");
/// Compute (a*b)/0x10000 with maximum accuracy. Its main use is to multiply
/// a given value by a 16.16 fixed-point factor.
pub fn mulFix(a: i32, b: i32) i32 {
return @intCast(i32, c.FT_MulFix(a, b));
}

View File

@ -1,6 +1,7 @@
pub const c = @import("c.zig");
pub const testing = @import("test.zig");
pub const Library = @import("Library.zig");
pub usingnamespace @import("computations.zig");
pub usingnamespace @import("errors.zig");
pub usingnamespace @import("face.zig");