On Apr 20, 4:46 pm, Josh Stratton <strattonbra...@gmail.com> wrote:
> But I can't seem to call createGLPbuffer w/o getting an exception.
<SNIP/>
> Caused by: java.lang.IllegalArgumentException: No matching method:
> createGLPbuffer

This one is because the createGLPbuffer method is not static; you need
to have created a GLDrawableFactory first using getFactory():

(.createGLPbuffer (GLDrawableFactory/getFactory (GLProfile/
getDefault)) nil nil 1 1 nil)

The GLCapabilities argument needs to be set, otherwise you'll get a
NullPointerException at this point.

The simplest invocation I could come up with that returned a
GLPbufferImpl was this:

(let [profile (GLProfile/getDefault)]
    (.createGLPbuffer (GLDrawableFactory/getFactory profile)
(GLCapabilities. profile) nil 1 1 nil))

You can take it from here with different profiles, capabilities,
choosers etc.

J

PS I'm using Clojure 1.1 and JOGL 2.0.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to