public class GLSupport
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
GLSupport.GLVersionInfo |
static class |
GLSupport.GLVersionListener |
static class |
GLSupport.ImagePanel
Simple class to help debug storage
|
Modifier and Type | Field and Description |
---|---|
static int |
BYTE_SIZE |
static int |
FLOAT_SIZE |
static int |
INTEGER_SIZE |
static int |
SHORT_SIZE |
Constructor and Description |
---|
GLSupport() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkAndPrintGLError(com.jogamp.opengl.GL gl) |
static java.awt.image.BufferedImage |
downloadTexture(com.jogamp.opengl.GL2GL3 gl,
int target) |
static java.awt.image.BufferedImage |
downloadTexture(com.jogamp.opengl.GL2GL3 gl,
int target,
int level) |
static java.awt.image.BufferedImage |
getImageRGBA(java.nio.ByteBuffer buff,
int width,
int height) |
static GLSupport.GLVersionInfo |
getMaxGLVersionSupported() |
static GLSupport.GLVersionInfo |
getMinGLVersionSupported() |
static GLSupport.GLVersionInfo |
getVersionInfo(com.jogamp.opengl.GLProfile glp) |
static void |
GLMatrixToTransform(AffineTransform3dBase X,
double[] mat) |
static int |
hashCode(double d)
Java 8 version of double hashcode
|
static int |
hashCode(float f)
Java 8 version of float hashcode
|
static void |
main(java.lang.String[] args) |
static void |
printGLError(int err) |
static void |
showImage(java.awt.image.BufferedImage image) |
static void |
showImage(java.nio.ByteBuffer buff,
int width,
int height) |
static void |
showTexture(com.jogamp.opengl.GL2GL3 gl,
int target,
int level) |
static void |
transformToGLMatrix(double[] mat,
AffineTransform2dBase T)
Converts a 2D affine transform to a 4D matrix expected by opengl
|
static void |
transformToGLMatrix(double[] mat,
Matrix T) |
public static final int BYTE_SIZE
public static final int SHORT_SIZE
public static final int INTEGER_SIZE
public static final int FLOAT_SIZE
public static int hashCode(float f)
public static int hashCode(double d)
public static void transformToGLMatrix(double[] mat, AffineTransform2dBase T)
public static void transformToGLMatrix(double[] mat, Matrix T)
public static void GLMatrixToTransform(AffineTransform3dBase X, double[] mat)
public static void showTexture(com.jogamp.opengl.GL2GL3 gl, int target, int level)
public static void showImage(java.nio.ByteBuffer buff, int width, int height)
public static void showImage(java.awt.image.BufferedImage image)
public static java.awt.image.BufferedImage downloadTexture(com.jogamp.opengl.GL2GL3 gl, int target)
public static java.awt.image.BufferedImage getImageRGBA(java.nio.ByteBuffer buff, int width, int height)
public static java.awt.image.BufferedImage downloadTexture(com.jogamp.opengl.GL2GL3 gl, int target, int level)
public static boolean checkAndPrintGLError(com.jogamp.opengl.GL gl)
public static void printGLError(int err)
public static GLSupport.GLVersionInfo getMinGLVersionSupported()
public static GLSupport.GLVersionInfo getMaxGLVersionSupported()
public static GLSupport.GLVersionInfo getVersionInfo(com.jogamp.opengl.GLProfile glp)
public static void main(java.lang.String[] args)