Switch back to fun main()

This commit is contained in:
Edwin Jakobs
2021-08-30 17:18:54 +02:00
parent c5a95f8d17
commit 9a2f10f81d
187 changed files with 313 additions and 316 deletions

View File

@@ -9,7 +9,7 @@ import org.openrndr.extra.kinect.v1.getKinectsV1
* Note: kinect depth map is stored only on the RED color channel to save
* space. Therefore depth map is displayed only in the red tones.
*/
suspend fun main() = application {
fun main() = application {
configure { // default resolution of the Kinect v1 depth camera
width = 640
height = 480

View File

@@ -31,7 +31,7 @@ import org.openrndr.extra.kinect.v1.getKinectsV1
* @see DepthToColorsZucconi6Mapper
* @see DepthToColorsTurboMapper
*/
suspend fun main() = application {
fun main() = application {
configure {
width = 2 * 640
height = 2 * 480

View File

@@ -6,7 +6,7 @@ import org.openrndr.extra.kinect.v1.getKinectsV1
/**
* Stream from 2 kinects side by side.
*/
suspend fun main() = application {
fun main() = application {
configure {
width = 640 * 2
height = 480

View File

@@ -12,7 +12,7 @@ import java.lang.RuntimeException
* The calls are executed in separate kinect runner thread but they will
* block the calling thread until the result is returned.
*/
suspend fun main() = application {
fun main() = application {
program {
val kinects = getKinectsV1(this)
// the same as calling kinects.countDevices(), here to show that any value might be returned from execute