public class OpenGLUtil extends java.lang.Object
Constructor and Description |
---|
OpenGLUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isOpenGLSupported(int version)
Returns
true is the specified version of OpenGL is supported by the graphics card (or by its
driver). |
static boolean |
isOpenGLSupported(int version,
boolean hard)
Returns
true is the specified version of OpenGL is supported by the graphics card
(or by its driver). |
public OpenGLUtil()
public static boolean isOpenGLSupported(int version)
true
is the specified version of OpenGL is supported by the graphics card (or by its
driver).version
- the version of OpenGL we want to test for (1 to 4)public static boolean isOpenGLSupported(int version, boolean hard)
true
is the specified version of OpenGL is supported by the graphics card
(or by its driver).version
- the version of OpenGL we want to test for (1 to 4)hard
- specify if we query about hardware support (GPU) or not