Class GLShaderUtils
- java.lang.Object
-
- com.metsci.glimpse.core.gl.shader.GLShaderUtils
-
public class GLShaderUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description GLShaderUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
attachShaders(com.jogamp.opengl.GL2ES2 gl, int program, int... shaders)
static int
compileShader(com.jogamp.opengl.GL2ES2 gl, int shaderType, String source)
static int
compileShader(com.jogamp.opengl.GL2ES2 gl, int shaderType, String[] sources)
static int
createProgram(com.jogamp.opengl.GL2ES2 gl, String[] vertSources, String[] geomSources, String[] fragSources)
static int
createProgram(com.jogamp.opengl.GL2ES2 gl, String vertSource, String geomSource, String fragSource)
static void
deleteShaders(com.jogamp.opengl.GL2ES2 gl, int... shaders)
static void
detachShaders(com.jogamp.opengl.GL2ES2 gl, int program, int... shaders)
static String
getProgramInfoLog(com.jogamp.opengl.GL2ES2 gl, int program)
static String
getShaderInfoLog(com.jogamp.opengl.GL2ES2 gl, int shader)
static int
linkProgram(com.jogamp.opengl.GL2ES2 gl, int... shaders)
static void
requireNoErrors(com.jogamp.opengl.GL gl)
-
-
-
Method Detail
-
createProgram
public static int createProgram(com.jogamp.opengl.GL2ES2 gl, String[] vertSources, String[] geomSources, String[] fragSources)
-
createProgram
public static int createProgram(com.jogamp.opengl.GL2ES2 gl, String vertSource, String geomSource, String fragSource)
-
compileShader
public static int compileShader(com.jogamp.opengl.GL2ES2 gl, int shaderType, String source)
-
compileShader
public static int compileShader(com.jogamp.opengl.GL2ES2 gl, int shaderType, String[] sources)
-
getShaderInfoLog
public static String getShaderInfoLog(com.jogamp.opengl.GL2ES2 gl, int shader)
-
requireNoErrors
public static void requireNoErrors(com.jogamp.opengl.GL gl)
-
linkProgram
public static int linkProgram(com.jogamp.opengl.GL2ES2 gl, int... shaders)
-
attachShaders
public static void attachShaders(com.jogamp.opengl.GL2ES2 gl, int program, int... shaders)
-
detachShaders
public static void detachShaders(com.jogamp.opengl.GL2ES2 gl, int program, int... shaders)
-
deleteShaders
public static void deleteShaders(com.jogamp.opengl.GL2ES2 gl, int... shaders)
-
getProgramInfoLog
public static String getProgramInfoLog(com.jogamp.opengl.GL2ES2 gl, int program)
-
-