Class GlShader


  • public class GlShader
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      GlShader​(java.lang.String vertexSource, java.lang.String fragmentSource)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getAttribLocation​(java.lang.String label)  
      int getUniformLocation​(java.lang.String label)  
      void release()  
      void setVertexAttribArray​(java.lang.String label, int dimension, java.nio.FloatBuffer buffer)
      Enable and upload a vertex array for attribute |label|.
      void useProgram()  
      • Methods inherited from class java.lang.Object

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

      • GlShader

        public GlShader​(java.lang.String vertexSource,
                        java.lang.String fragmentSource)
    • Method Detail

      • getAttribLocation

        public int getAttribLocation​(java.lang.String label)
      • setVertexAttribArray

        public void setVertexAttribArray​(java.lang.String label,
                                         int dimension,
                                         java.nio.FloatBuffer buffer)
        Enable and upload a vertex array for attribute |label|. The vertex data is specified in |buffer| with |dimension| number of components per vertex.
      • getUniformLocation

        public int getUniformLocation​(java.lang.String label)
      • useProgram

        public void useProgram()
      • release

        public void release()