Prepare template for OPENRNDR 0.4

This commit is contained in:
Edwin Jakobs
2021-07-22 16:26:58 +02:00
parent d103e206d2
commit df1782f317
5 changed files with 18 additions and 15 deletions

View File

@@ -1,4 +1,8 @@
# OPENRNDR template project
Attention: you are using a template for OPENRNDR 0.4, which is currently not been released yet. This template assumes
that you have build and published `OPENRNDR-0.5.1-SNAPSHOT` and `ORX-0.5.1-SNAPSHOT` to your local maven repository.
A feature rich template for creating OPENRNDR programs based on Gradle/Kts
The template consists of a configuration for Gradle and an example OPENRNDR program. The Gradle configuration should serve as the

View File

@@ -5,7 +5,7 @@ import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
/* the name of this project, default is the template version but you are free to change these */
group = "org.openrndr.template"
version = "0.3.18"
version = "0.4.0"
val applicationMainClass = "TemplateProgramKt"
@@ -78,14 +78,14 @@ val openrndrFeatures = setOf(
)
/* Which version of OPENRNDR and ORX should be used? */
val openrndrUseSnapshot = false
val openrndrVersion = if (openrndrUseSnapshot) "0.4.0-SNAPSHOT" else "0.3.58"
val openrndrUseSnapshot = true
val openrndrVersion = if (openrndrUseSnapshot) "0.5.1-SNAPSHOT" else "0.4.0"
val orxUseSnapshot = false
val orxVersion = if (orxUseSnapshot) "0.4.0-SNAPSHOT" else "0.3.58"
val orxUseSnapshot = true
val orxVersion = if (orxUseSnapshot) "0.5.1-SNAPSHOT" else "0.4.0"
val ormlUseSnapshot = false
val ormlVersion = if (ormlUseSnapshot) "0.4.0-SNAPSHOT" else "0.3.0-rc.5"
val ormlUseSnapshot = true
val ormlVersion = if (ormlUseSnapshot) "0.5.1-SNAPSHOT" else "0.4.0"
// choices are "orx-tensorflow-gpu", "orx-tensorflow-mkl", "orx-tensorflow"
val orxTensorflowBackend = "orx-tensorflow-mkl"
@@ -121,11 +121,11 @@ enum class Logging {
/* What type of logging should this project use? */
val applicationLogging = Logging.FULL
val kotlinVersion = "1.5.0"
val kotlinVersion = "1.5.21"
plugins {
java
kotlin("jvm") version("1.5.0")
kotlin("jvm") version("1.5.21")
id("com.github.johnrengelman.shadow") version ("6.1.0")
id("org.beryx.runtime") version ("1.11.4")
}
@@ -168,13 +168,12 @@ dependencies {
runtimeOnly(openrndrNatives("gl3"))
implementation(openrndr("openal"))
runtimeOnly(openrndrNatives("openal"))
implementation(openrndr("core"))
implementation(openrndr("application"))
implementation(openrndr("svg"))
implementation(openrndr("animatable"))
implementation(openrndr("extensions"))
implementation(openrndr("filter"))
implementation("org.jetbrains.kotlinx", "kotlinx-coroutines-core","1.5.0-RC")
implementation("org.jetbrains.kotlinx", "kotlinx-coroutines-core","1.5.0")
implementation("io.github.microutils", "kotlin-logging-jvm","2.0.6")
when(applicationLogging) {

View File

@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

View File

@@ -9,7 +9,7 @@ import org.openrndr.extra.olive.oliveProgram
* oliveProgram {} can be changed while the program is running.
*/
fun main() = application {
suspend fun main() = application {
configure {
width = 800
height = 800

View File

@@ -6,7 +6,7 @@ import org.openrndr.draw.tint
import kotlin.math.cos
import kotlin.math.sin
fun main() = application {
suspend fun main() = application {
configure {
width = 768
height = 576