colorful box
This commit is contained in:
@@ -93,3 +93,10 @@ pub fn add_resize_callback(cb: *const fn (u32, u32) void) void {
|
||||
pub fn set_title(title: [:0]const u8) void {
|
||||
c.glfwSetWindowTitle(handle, title);
|
||||
}
|
||||
|
||||
pub fn size() std.meta.Tuple(&[_]type{ u32, u32 }) {
|
||||
var w: c_int = undefined;
|
||||
var h: c_int = undefined;
|
||||
c.glfwGetFramebufferSize(handle, &w, &h);
|
||||
return .{ @intCast(w), @intCast(h) };
|
||||
}
|
||||
|
Reference in New Issue
Block a user