resizing is well on its way to working.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
(ns advent.core.desktop-launcher
|
||||
(:require [advent.core :refer :all]
|
||||
[clojure.tools.nrepl.server])
|
||||
(:import [com.badlogic.gdx.backends.lwjgl LwjglApplication]
|
||||
(:import [com.badlogic.gdx.backends.lwjgl LwjglApplication LwjglApplicationConfiguration]
|
||||
[org.lwjgl.input Keyboard])
|
||||
(:gen-class))
|
||||
|
||||
@@ -17,6 +17,13 @@
|
||||
(defn -main
|
||||
[& [port]]
|
||||
(when port (start-nrepl-expr (Integer/parseInt port)))
|
||||
(LwjglApplication. advent "advent" 1280 960)
|
||||
(if false
|
||||
(let [cfg (LwjglApplicationConfiguration.)]
|
||||
(set! (.width cfg) (doto (.width (LwjglApplicationConfiguration/getDesktopDisplayMode)) println))
|
||||
(set! (.height cfg) (doto (.height (LwjglApplicationConfiguration/getDesktopDisplayMode)) println))
|
||||
(set! (.fullscreen cfg) true)
|
||||
(LwjglApplication. advent cfg))
|
||||
(LwjglApplication. advent "advent" 1280 960))
|
||||
|
||||
|
||||
(Keyboard/enableRepeatEvents true))
|
||||
|
||||
Reference in New Issue
Block a user