-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Oleksandr Zakusylo edited this page Jun 29, 2024
·
5 revisions
To insert Korender rendering viewport into your Compose Multiplatform UI, call the Korender
function from the parent @Composable
function:
@Composable
fun App() {
Column {
Text("Korender Viewport below !!!")
Korender {
}
}
}
Add initialization code into Korender
context, per-frame code and renderable objects into Frame
context:
Korender {
// Code here will run once on Korender viewport initialization
Frame {
// Code here will run on every frame
// Place your renderable declaration functions here
}
}