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")
|
@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) { }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
Reference in New Issue
Block a user