diff --git a/buildSrc/src/main/kotlin/org/openrndr/extra/convention/kotlin-jvm.gradle.kts b/buildSrc/src/main/kotlin/org/openrndr/extra/convention/kotlin-jvm.gradle.kts index 118eb9f7..1f295f50 100644 --- a/buildSrc/src/main/kotlin/org/openrndr/extra/convention/kotlin-jvm.gradle.kts +++ b/buildSrc/src/main/kotlin/org/openrndr/extra/convention/kotlin-jvm.gradle.kts @@ -34,7 +34,7 @@ val main: SourceSet by sourceSets.getting @Suppress("UNUSED_VARIABLE") val demo: SourceSet by sourceSets.creating { - if (name != "openrndr-demos") { + if (project.name != "openrndr-demos") { collectScreenshots(project, this@creating) { } } } diff --git a/openrndr-demos/build.gradle.kts b/openrndr-demos/build.gradle.kts index e7f455ba..87d63611 100644 --- a/openrndr-demos/build.gradle.kts +++ b/openrndr-demos/build.gradle.kts @@ -8,6 +8,7 @@ dependencies { demoImplementation(project(":orx-noise")) demoImplementation(project(":orx-jvm:orx-gui")) demoImplementation(project(":orx-shader-phrases")) + demoImplementation(project(":orx-camera")) demoImplementation(libs.slf4j.simple) demoImplementation(libs.openrndr.ffmpeg) demoImplementation(libs.openrndr.svg) diff --git a/openrndr-demos/src/demo/kotlin/DemoMouseCursor01.kt b/openrndr-demos/src/demo/kotlin/DemoMouseCursor01.kt index 3e36347d..55973fe4 100644 --- a/openrndr-demos/src/demo/kotlin/DemoMouseCursor01.kt +++ b/openrndr-demos/src/demo/kotlin/DemoMouseCursor01.kt @@ -1,21 +1,21 @@ -import org.openrndr.CursorType -import org.openrndr.application - -fun main() { - application { - program { - keyboard.character.listen { - if (it.character == 'c') { - mouse.cursorVisible = !mouse.cursorVisible - } - } - extend { - if (mouse.position.x < width/2.0) { - mouse.cursorType = CursorType.ARROW_CURSOR - } else { - mouse.cursorType = CursorType.HAND_CURSOR - } - } - } - } -} \ No newline at end of file +//import org.openrndr.CursorType +//import org.openrndr.application +// +//fun main() { +// application { +// program { +// keyboard.character.listen { +// if (it.character == 'c') { +// mouse.cursorVisible = !mouse.cursorVisible +// } +// } +// extend { +// if (mouse.position.x < width/2.0) { +// mouse.cursorType = CursorType.ARROW_CURSOR +// } else { +// mouse.cursorType = CursorType.HAND_CURSOR +// } +// } +// } +// } +//} \ No newline at end of file