Class GLShaderUtils


  • public class GLShaderUtils
    extends Object
    • Constructor Detail

      • GLShaderUtils

        public GLShaderUtils()
    • 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)