renderTexture example
This commit is contained in:
@@ -209,6 +209,13 @@ fn gui_frame(ctx: *WindowContext) bool {
|
||||
},
|
||||
},
|
||||
);
|
||||
|
||||
dvui.renderTexture(tex, dvui.RectScale{ .r = dvui.Rect.Physical{
|
||||
.x = @floatFromInt(vis.x),
|
||||
.y = @floatFromInt(vis.y),
|
||||
.w = @floatFromInt(tex.width),
|
||||
.h = @floatFromInt(tex.height),
|
||||
}, .s = 1.0 }, .{}) catch {};
|
||||
}
|
||||
}
|
||||
canvas_layer.deinit();
|
||||
|
||||
Reference in New Issue
Block a user