renderTexture example

This commit is contained in:
2026-01-22 17:31:59 +03:00
parent 716b6fbeea
commit 9687d9cab5

View File

@@ -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();