all: refactor: cleanup module structure
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
52c4eb5d74
commit
c16cddd250
7 changed files with 88 additions and 67 deletions
20
src/gfx/main.zig
Normal file
20
src/gfx/main.zig
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
pub const util = @import("util.zig");
|
||||
pub const Sprite = @import("Sprite.zig");
|
||||
pub const Text = @import("Text.zig");
|
||||
pub const FontRenderer = @import("font.zig").FontRenderer;
|
||||
pub const RGBA32 = @import("font.zig").RGBA32;
|
||||
pub const Glyph = @import("font.zig").Glyph;
|
||||
pub const GlyphMetrics = @import("font.zig").GlyphMetrics;
|
||||
|
||||
test {
|
||||
const std = @import("std");
|
||||
// TODO: refactor code so we can use this here:
|
||||
// std.testing.refAllDeclsRecursive(@This());
|
||||
std.testing.refAllDeclsRecursive(util);
|
||||
// std.testing.refAllDeclsRecursive(Sprite);
|
||||
// std.testing.refAllDeclsRecursive(Text);
|
||||
std.testing.refAllDeclsRecursive(FontRenderer);
|
||||
std.testing.refAllDeclsRecursive(RGBA32);
|
||||
std.testing.refAllDeclsRecursive(Glyph);
|
||||
std.testing.refAllDeclsRecursive(GlyphMetrics);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue