void render(Scene scene)

Updates the application's rendering on the GPU with the newly provided Scene. This function must be called within the scope of the onBeginFrame callback being invoked. If this function is called multiple times during a single onBeginFrame callback or called outside the scope of an onBeginFrame, the call will be ignored.

To record graphical operations, first create a PictureRecorder, then construct a Canvas, passing that PictureRecorder to its constructor. After issuing all the graphical operations, call the endRecording function on the PictureRecorder to obtain the final Picture that represents the issued graphical operations.

Next, create a SceneBuilder, and add the Picture to it using SceneBuilder.addPicture. With the SceneBuilder.build method you can then obtain a Scene object, which you can display to the user via this render function.

Source

void render(Scene scene) native "Window_render";