Exclude openrndr-demos from collectScreenshots, fix compile errors

This commit is contained in:
Edwin Jakobs
2023-04-04 21:17:30 +02:00
parent 5fe2d30f80
commit 16455b9069
3 changed files with 23 additions and 22 deletions

View File

@@ -34,7 +34,7 @@ val main: SourceSet by sourceSets.getting
@Suppress("UNUSED_VARIABLE") @Suppress("UNUSED_VARIABLE")
val demo: SourceSet by sourceSets.creating { val demo: SourceSet by sourceSets.creating {
if (name != "openrndr-demos") { if (project.name != "openrndr-demos") {
collectScreenshots(project, this@creating) { } collectScreenshots(project, this@creating) { }
} }
} }

View File

@@ -8,6 +8,7 @@ dependencies {
demoImplementation(project(":orx-noise")) demoImplementation(project(":orx-noise"))
demoImplementation(project(":orx-jvm:orx-gui")) demoImplementation(project(":orx-jvm:orx-gui"))
demoImplementation(project(":orx-shader-phrases")) demoImplementation(project(":orx-shader-phrases"))
demoImplementation(project(":orx-camera"))
demoImplementation(libs.slf4j.simple) demoImplementation(libs.slf4j.simple)
demoImplementation(libs.openrndr.ffmpeg) demoImplementation(libs.openrndr.ffmpeg)
demoImplementation(libs.openrndr.svg) demoImplementation(libs.openrndr.svg)

View File

@@ -1,21 +1,21 @@
import org.openrndr.CursorType //import org.openrndr.CursorType
import org.openrndr.application //import org.openrndr.application
//
fun main() { //fun main() {
application { // application {
program { // program {
keyboard.character.listen { // keyboard.character.listen {
if (it.character == 'c') { // if (it.character == 'c') {
mouse.cursorVisible = !mouse.cursorVisible // mouse.cursorVisible = !mouse.cursorVisible
} // }
} // }
extend { // extend {
if (mouse.position.x < width/2.0) { // if (mouse.position.x < width/2.0) {
mouse.cursorType = CursorType.ARROW_CURSOR // mouse.cursorType = CursorType.ARROW_CURSOR
} else { // } else {
mouse.cursorType = CursorType.HAND_CURSOR // mouse.cursorType = CursorType.HAND_CURSOR
} // }
} // }
} // }
} // }
} //}