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

@@ -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)

View File

@@ -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
}
}
}
}
}
//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
// }
// }
// }
// }
//}