title: JOGL: some GL constants can not be resolved
body: <p>i've written a java program with JOGL included.
  Everything worked fine, until i wanted to render an image (jpg,gif,png) with a texture.
  i found following code snippet:</p>
  
  <pre><code>import javax.media.opengl.*;
  ...
  GL2 gl = drawable.getGL().getGL2();
  
  gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_S, GL.GL_CLAMP);
  gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_T, GL.GL_CLAMP);
  gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MAG_FILTER, GL.GL_LINEAR);
  gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MIN_FILTER, GL.GL_LINEAR);
  gl.glTexEnvf(GL.GL_TEXTURE_ENV, GL.GL_TEXTURE_ENV_MODE, GL.GL_REPLACE);
  gl.glTexImage2D(GL.GL_TEXTURE_2D, 0, GL.GL_RGBA, w, h, 0, GL.GL_RGBA, GL.GL_UNSIGNED_BYTE, bb);
  
  int left = 100;
  int top = 100;
  gl.glEnable(GL.GL_TEXTURE_2D);
  gl.glBindTexture(GL.GL_TEXTURE_2D, 13);
  gl.glBegin(GL.GL_POLYGON);
  ...
  </code></pre>
  
  <p>the problem is that Eclipse can't resolve <code>GL.GL_CLAMP</code>, <code>GL.GL_TEXTURE_ENV</code>, <code>GL.GL_TEXTURE_ENV_MODE</code> and <code>GL.GL_POLYGON</code>.
  as an alternative for <code>GL.GL_CLAMP</code> there is just <code>GL.GL_CLAMP_TO_EDGE</code>.
  i can't even find <code>GL.GL_QUAD</code>, just <code>GL.GL_TRIANGLE</code>.
  what is wrong?
  do i missed an import?
  other GL constants can be resolved.</p>
  
  <p>regards,
  peter</p>