sokol-playground/src/main.zig

29 lines
569 B
Zig
Raw Normal View History

2024-06-08 22:48:23 +00:00
const std = @import("std");
2024-06-08 23:15:52 +00:00
const sokol = @import("sokol");
const sg = sokol.gfx;
2024-06-08 22:48:23 +00:00
2024-06-08 23:15:52 +00:00
const state = struct {
var bind: sg.Bindings = .{};
var pip: sg.Pipeline = .{};
};
2024-06-08 22:48:23 +00:00
2024-06-08 23:15:52 +00:00
export fn frame() void {}
2024-06-08 22:48:23 +00:00
2024-06-08 23:15:52 +00:00
export fn init() void {}
2024-06-08 22:48:23 +00:00
2024-06-08 23:15:52 +00:00
export fn cleanup() void {}
pub fn main() !void {
sokol.app.run(.{
.init_cb = init,
.frame_cb = frame,
.cleanup_cb = cleanup,
.width = 800,
.height = 600,
.icon = .{ .sokol_default = true },
.window_title = "sokol hello",
.logger = .{ .func = sokol.log.func },
});
2024-06-08 22:48:23 +00:00
}