Add ApplicationPreload mechanism to collectScreenshots
This commit is contained in:
@@ -1,12 +1,8 @@
|
||||
import Orx_collect_screenshots_gradle.ScreenshotsHelper.collectScreenshots
|
||||
import Orx_embed_shaders_gradle.EmbedShadersTask
|
||||
|
||||
import ScreenshotsHelper.collectScreenshots
|
||||
|
||||
plugins {
|
||||
kotlin("multiplatform")
|
||||
kotlin("plugin.serialization")
|
||||
id("orx.embed-shaders")
|
||||
id("orx.collect-screenshots")
|
||||
}
|
||||
|
||||
val kotlinxSerializationVersion: String by rootProject.extra
|
||||
|
||||
@@ -9,15 +9,6 @@ import kotlin.math.sin
|
||||
fun main() {
|
||||
application {
|
||||
program {
|
||||
|
||||
// -- this block is for automation purposes only
|
||||
if (System.getProperty("takeScreenshot") == "true") {
|
||||
extend(SingleScreenshot()) {
|
||||
this.delayFrames = 60
|
||||
this.outputFile = System.getProperty("screenshotPath")
|
||||
}
|
||||
}
|
||||
|
||||
// In this buffer we will draw some simple shapes
|
||||
val dry = renderTarget(width / 3, height / 3) {
|
||||
colorBuffer()
|
||||
|
||||
Reference in New Issue
Block a user