examples, shaderexp: update to new options and size limit API
This commit is contained in:
parent
176554fe4d
commit
7b395759b7
8 changed files with 26 additions and 10 deletions
|
|
@ -33,7 +33,9 @@ const Dir = struct {
|
|||
};
|
||||
|
||||
pub fn init(app: *App, engine: *mach.Engine) !void {
|
||||
try engine.setSizeLimits(.{ .width = 20, .height = 20 }, .{ .width = null, .height = null });
|
||||
try engine.setOptions(.{
|
||||
.size_min = .{ .width = 20, .height = 20 },
|
||||
});
|
||||
|
||||
const eye = vec3(5.0, 7.0, 5.0);
|
||||
const target = vec3(0.0, 0.0, 0.0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue