4 questions from the last 30 days
3
votes
1
answer
54
views
Accessing the window from a menu item in Cljfx
How can I access the main window (:stage) from a menu click event in Cljfx? I need it for two reasons: to open a file chooser, and to resize the window.
A minimal example:
(ns a
(:require [cljfx.api ...
0
votes
1
answer
44
views
Cannot call a particular java method listed in clojure.reflect/reflect
I am having no luck calling advanceExact in various Lucene DocValues subclasses, for example:
user> (.advanceExact doc-values 1)
Execution error (IllegalArgumentException) at user/eval24512 (REPL:...
1
vote
1
answer
30
views
How to correctly integrate java source into a leiningen project?
This is my java source file:
package main;
class ModelLoader {
public static void foo() {
System.out.println("foo");
}
}
which is located at src/main/java/ModelLoader.java.
...
0
votes
0
answers
50
views
How to load model data directly into an OpenGL buffer?
With this code I read the model data into a FloatBuffer, one float at a time:
(defn create-vertex-buffer
[mesh]
(let [buffer (BufferUtils/createFloatBuffer (* (.mNumVertices mesh) 8))
...