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! //
/////////////////////
uiContainer.forEach { if (it != consoleHandler) it.render(batch) }
debugWindow.render(batch)
// make sure console draws on top of other UIs
consoleHandler.render(batch)
notifier.render(batch)
batch.inUse {
uiContainer.forEach { if (it != consoleHandler) it.render(batch) }
debugWindow.render(batch)
// make sure console draws on top of other UIs
consoleHandler.render(batch)
notifier.render(batch)
}
//////////////////

View File

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