(get-size game)

Source

(defn get-size [game] #?(:clj (let [*width (MemoryUtil/memAllocInt 1) *height (MemoryUtil/memAllocInt 1) _ (GLFW/glfwGetFramebufferSize (:context game) *width *height) w (.get *width) h (.get *height)] (MemoryUtil/memFree *width) (MemoryUtil/memFree *height) [w h]) :cljs [(-> game :context .-canvas .-clientWidth) (-> game :context .-canvas .-clientHeight)]))