slick's graphic context: antialiasing

Former-commit-id: 95ed4b844b02a78d5191e66d8d7384b3828be397
Former-commit-id: f591977f3e74a2d10328acbb72feb0bbf1b4b496
This commit is contained in:
Song Minjae
2016-10-07 01:45:25 +09:00
parent 8b4baa77a4
commit b0736aa722
2 changed files with 2 additions and 0 deletions

View File

@@ -234,6 +234,7 @@ constructor() : BasicGameState() {
}
override fun render(gc: GameContainer, sbg: StateBasedGame, g: Graphics) {
g.isAntiAlias = true
blendNormal()

View File

@@ -245,6 +245,7 @@ constructor(gamename: String) : StateBasedGame(gamename) {
appgc.setVSync(VSYNC)
appgc.setMaximumLogicUpdateInterval(1000 / TARGET_INTERNAL_FPS) // 10 ms
appgc.setMinimumLogicUpdateInterval(1000 / TARGET_INTERNAL_FPS - 1) // 9 ms
appgc.setMultiSample(4)
appgc.setShowFPS(false)