Class GLProgram


  • public class GLProgram
    extends java.lang.Object
    OpenGL Shader Program.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int nativeProgram  
    • Constructor Summary

      Constructors 
      Constructor Description
      GLProgram​(int program)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Boolean bind()
      Binds program for a render.
      static GLProgram createProgramFromSource​(java.lang.String vertex, java.lang.String fragment)
      Creates a shader from vertex and fragment strings.
      void dispose()
      Disposes the program.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • nativeProgram

        public final int nativeProgram
    • Constructor Detail

      • GLProgram

        public GLProgram​(int program)
    • Method Detail

      • createProgramFromSource

        public static GLProgram createProgramFromSource​(java.lang.String vertex,
                                                        java.lang.String fragment)
        Creates a shader from vertex and fragment strings.
      • bind

        public java.lang.Boolean bind()
        Binds program for a render.
        Returns:
        true if current program is bound successfully
      • dispose

        public void dispose()
        Disposes the program.