Upgrade to OPENRNDR 0.4 snapshot

This commit is contained in:
Edwin Jakobs
2021-06-22 11:08:07 +02:00
parent 579ddf9bb5
commit 9435907ef9
339 changed files with 460 additions and 497 deletions

View File

@@ -9,7 +9,7 @@ sourceSets {
}
dependencies {
demoImplementation("org.openrndr:openrndr-core:$openrndrVersion")
demoImplementation("org.openrndr:openrndr-application:$openrndrVersion")
demoImplementation("org.openrndr:openrndr-extensions:$openrndrVersion")
demoRuntimeOnly("org.openrndr:openrndr-gl3:$openrndrVersion")
demoRuntimeOnly("org.openrndr:openrndr-gl3-natives-$openrndrOS:$openrndrVersion")

View File

@@ -2,7 +2,7 @@ import org.openrndr.application
import org.openrndr.extensions.SingleScreenshot
import org.openrndr.extra.timer.repeat
fun main() = application {
suspend fun main() = application {
program {
repeat(2.0) {
println("hello there $seconds" )

View File

@@ -8,7 +8,7 @@ import org.openrndr.extra.timer.repeat
* This demonstrates how to combine `repeat {}` with a postponed event to trigger drawing
*/
fun main() = application {
suspend fun main() = application {
program {
val event = Event<Any?>().postpone(true)
event.listen {

View File

@@ -2,7 +2,7 @@ import org.openrndr.application
import org.openrndr.extensions.SingleScreenshot
import org.openrndr.extra.timer.timeOut
fun main() = application {
suspend fun main() = application {
program {
if (System.getProperty("takeScreenshot") == "true") {
extend(SingleScreenshot()) {