Hi,
I have an application that wants to query "is open gl 3.30 availble" and only then initialize a Window with an OpenGL render path. If it is not available it will create a java2d based fallback instead.
So I need a function with this interface:
public static boolean isGLSLSupported(com.jogamp.common.util.VersionNumber vn);
The only way I came up with however seems rather cluncky:
http://pastebin.com/mUSncfE0I then call it like this:
System.out.println("#version 330 core is supported: " + isGLSLSupported(new VersionNumber(3, 30, 0)));
I am not quite sure if this is even a correct way to do this, can anybody verify if this at least works? As clunky as it is I feel uneasy doing this ;)