Skip to content

Commit

Permalink
v2.1.0: Configurable loading page
Browse files Browse the repository at this point in the history
  • Loading branch information
Twometer committed Oct 6, 2021
1 parent 467113e commit bb94b43
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion neko-engine/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group 'de.twometer'
version '2.0.1'
version '2.1.0'

/* Version configuration */
project.ext.lwjglVersion = "3.2.3"
Expand Down
2 changes: 1 addition & 1 deletion neko-engine/src/main/kotlin/de/twometer/neko/Neko.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ package de.twometer.neko

object Neko {

const val VERSION = "2.0.0-alpha"
const val VERSION = "2.1.0"

}
3 changes: 2 additions & 1 deletion neko-engine/src/main/kotlin/de/twometer/neko/core/NekoApp.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ open class NekoApp(config: AppConfig = AppConfig()) {
var guiManager: GuiManager = GuiManager()
var cursorVisible = false
var fpsLimit = 60
var loadingPage = "base/loading.html"

private val performanceProfile = HashMap<String, Double>()
private val performanceHistory = FloatArray(144)
Expand Down Expand Up @@ -70,7 +71,7 @@ open class NekoApp(config: AppConfig = AppConfig()) {
Events.post(ResizeEvent(width, height))

// Rendering context ready - display the loading screen
guiManager.page = Page("base/loading.html")
guiManager.page = Page(loadingPage)
do {
glClear(GL_COLOR_BUFFER_BIT or GL_DEPTH_BUFFER_BIT)
guiManager.render()
Expand Down

0 comments on commit bb94b43

Please sign in to comment.