GL_PERSPECTIVE doesn't resolve in 1.1.1 rc7?

I’m using 1.1.1 rc7. Most constants work fine, but GL.GL_PERSPECTIVE doesn’t resolve for some reason – Eclipse assist doesn’t find it, and the compiler gives me an error on it. However, when going to the type definition for GL (F3 in Eclipse), I get a disassembly of the jar, where it shows GL_PERSPECTIVE with the value 5889.

 // Field descriptor #2794 I
  public static final int GL_MATRIX_MODE = 2976;
  
  // Field descriptor #2794 I
  public static final int GL_MODELVIEW = 5888;
  
  // Field descriptor #2794 I
  public static final int GL_PROJECTION = 5889;
  
  // Field descriptor #2794 I
  public static final int GL_TEXTURE = 5890;

Meanwhile, using GL.GL_MODELVIEW in the same context compiles/resolves fine!

I realize this may very well be a user error, because I’m not very used to Eclipse, or Java in general, but I can’t figure out what would be going wrong. Any help appreciated!

Btw: I downloaded the source jogl-1.1.1-rc7-src.zip and installed and attached for the project in Eclipse where I attached the jars, so some classes show up with source, but there appears to be no source for the GL class itself. I assume that’s because it’s auto-generated?

Unless I’m crazy, you’re asking for GL.GL_PERSPECTIVE and you can’t find it, but in your code snipit there’s a GL.GL_PROJECTION with the value that you claimed GL_PERSPECTIVE has (ie 5889). In all my code, I use GL_PROJECTION and I have an older version of jogl (maybe rc5 or 4) and there is still no PERSPECTIV static final int.

lol:

the field with a value of 5889 is GL_PROJECTION. Not GL_PERSPECTIVE.

DP :slight_smile:

http://cranialcavity.net/fullthrottle/wp/wp-images/doh.jpg

I’ve been in Direct3D land for too long, it seems. Thanks for pointing out the obvious :slight_smile: