resizing is well on its way to working.

This commit is contained in:
2015-02-21 01:18:07 -08:00
parent 843fde014d
commit 6419638b5e
10 changed files with 165 additions and 93 deletions

View File

@@ -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))