Exclude openrndr-demos from collectScreenshots, fix compile errors
This commit is contained in:
@@ -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) { }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
Reference in New Issue
Block a user