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 voidattachShaders(com.jogamp.opengl.GL2ES2 gl, int program, int... shaders)static intcompileShader(com.jogamp.opengl.GL2ES2 gl, int shaderType, String source)static intcompileShader(com.jogamp.opengl.GL2ES2 gl, int shaderType, String[] sources)static intcreateProgram(com.jogamp.opengl.GL2ES2 gl, String[] vertSources, String[] geomSources, String[] fragSources)static intcreateProgram(com.jogamp.opengl.GL2ES2 gl, String vertSource, String geomSource, String fragSource)static voiddeleteShaders(com.jogamp.opengl.GL2ES2 gl, int... shaders)static voiddetachShaders(com.jogamp.opengl.GL2ES2 gl, int program, int... shaders)static StringgetProgramInfoLog(com.jogamp.opengl.GL2ES2 gl, int program)static StringgetShaderInfoLog(com.jogamp.opengl.GL2ES2 gl, int shader)static intlinkProgram(com.jogamp.opengl.GL2ES2 gl, int... shaders)static voidrequireNoErrors(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)
-
-