mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-11 22:31:52 +09:00
slick's graphic context: antialiasing
Former-commit-id: 95ed4b844b02a78d5191e66d8d7384b3828be397 Former-commit-id: f591977f3e74a2d10328acbb72feb0bbf1b4b496
This commit is contained in:
@@ -234,6 +234,7 @@ constructor() : BasicGameState() {
|
||||
}
|
||||
|
||||
override fun render(gc: GameContainer, sbg: StateBasedGame, g: Graphics) {
|
||||
g.isAntiAlias = true
|
||||
blendNormal()
|
||||
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user