gl = pgl.gl; can't be resolved....

edited October 2013 in Questions about Code

this is another sample from viki,

import processing.opengl.*;
import javax.media.opengl.GL;

PGraphicsOpenGL pgl;
GL gl; 
int mydisplaylist;

void setup() {
  size(300, 300, OPENGL);
  pgl = (PGraphicsOpenGL) g;  ///?

  gl = pgl.gl;  **///-----here, can not be resolved.**

  initDL();
}

void draw() {...
...

the two marks statements seem to have some thing matter. any prompt?

Tagged:
Sign In or Register to comment.