c: create/destroy surface API

This commit is contained in:
Mitchell Hashimoto
2023-02-17 12:31:35 -08:00
parent 6ceb5b847b
commit 55b05b22bb
4 changed files with 64 additions and 25 deletions

View File

@@ -94,6 +94,7 @@ pub fn main() !void {
// Run our app with a single initial window to start.
var app = try App.create(alloc, .{}, &config);
defer app.destroy();
_ = try app.newWindow(.{});
try app.run();
}