Just got enought to render without error (no display tho)

This commit is contained in:
minjaesong
2017-06-22 18:59:53 +09:00
parent 8e5e95e5a9
commit 2ebe4bc519
2 changed files with 10 additions and 6 deletions

View File

@@ -536,11 +536,13 @@ class StateInGameGDX(val batch: SpriteBatch) : Screen {
///////////////////// /////////////////////
// draw UIs ONLY! // // draw UIs ONLY! //
///////////////////// /////////////////////
uiContainer.forEach { if (it != consoleHandler) it.render(batch) } batch.inUse {
debugWindow.render(batch) uiContainer.forEach { if (it != consoleHandler) it.render(batch) }
// make sure console draws on top of other UIs debugWindow.render(batch)
consoleHandler.render(batch) // make sure console draws on top of other UIs
notifier.render(batch) consoleHandler.render(batch)
notifier.render(batch)
}
////////////////// //////////////////

View File

@@ -40,10 +40,12 @@ fun main(args: Array<String>) {
val config = LwjglApplicationConfiguration() val config = LwjglApplicationConfiguration()
config.foregroundFPS = TerrarumGDX.RENDER_FPS config.foregroundFPS = TerrarumGDX.RENDER_FPS
config.backgroundFPS = TerrarumGDX.RENDER_FPS config.backgroundFPS = TerrarumGDX.RENDER_FPS
config.vSyncEnabled = true //config.vSyncEnabled = true
config.resizable = false config.resizable = false
config.width = 1072 config.width = 1072
config.height = 742 config.height = 742
config.backgroundFPS = 9999
config.foregroundFPS = 9999
config.title = GAME_NAME config.title = GAME_NAME
LwjglApplication(TerrarumGDX, config) LwjglApplication(TerrarumGDX, config)