Browse Source

Prepare template for OPENRNDR 0.4

master
Edwin Jakobs 3 years ago
parent
commit
df1782f317
  1. 4
      README.md
  2. 23
      build.gradle.kts
  3. 2
      gradle/wrapper/gradle-wrapper.properties
  4. 2
      src/main/kotlin/TemplateLiveProgram.kt
  5. 2
      src/main/kotlin/TemplateProgram.kt

4
README.md

@ -1,4 +1,8 @@
# OPENRNDR template project # 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 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 The template consists of a configuration for Gradle and an example OPENRNDR program. The Gradle configuration should serve as the

23
build.gradle.kts

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

2
gradle/wrapper/gradle-wrapper.properties

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists 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 zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

2
src/main/kotlin/TemplateLiveProgram.kt

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

2
src/main/kotlin/TemplateProgram.kt

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

Loading…
Cancel
Save