Switch back to fun main()
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user