Example #1
0
 public int glid(GL2 gl) {
   if ((gls != null) && (gls.gl != gl)) {
     gls.dispose();
     gls = null;
   }
   if (gls == null) gls = create(gl);
   return (gls.id);
 }
Example #2
0
 protected ShaderOb create(GL2 gl) {
   ShaderOb r = new ShaderOb(gl, GL2.GL_FRAGMENT_SHADER);
   r.compile(this);
   return (r);
 }