gl.glGetString(GL2.GL_VERSION)

  3 posts   Feedicon  
Replies: 2 - Last Post: January 17, 2010 13:51
by: rhdxmr
showing 1 - 3 of 3
 
Posted: January 16, 2010 17:09 by rhdxmr
Hi

I installed JOGL 2.

I'm using Linux and there exists mesa3d which is open source OpenGL implementation and its version is 7.0.2.
At the release note, Mesa version 7.0 supports OpenGL 2.1.


When my application call this function: gl.glGetString(GL2.GL_VERSION);
it returns this: 1.4 (2.1 Mesa 7.0.2)

What does this mean ? Does it mean that my system support only OpenGL 1.4
or .. what?

Hence can't I use functions which belong to > OpenGL 1.5 ?


sincerely
Junyeong
 
Posted: January 16, 2010 19:33 by Michael Bien
yes exactly, you can validate it by running glxinfo in a shell. It should report the same version string as JOGL does.

e.g output on my old notebook:
(...)
OpenGL vendor string: DRI R300 Project
OpenGL renderer string: Mesa DRI R300 (RV530 71C5) 20090101 x86/MMX/SSE2 TCL
OpenGL version string: 1.5 Mesa 7.6
(...)

 
Posted: January 17, 2010 13:51 by rhdxmr
Thank you a lot, Michael Bien


what about this method? : gl.isExtensionAvailable("GL_VERSION_2_1");
this returns true. and "GL_VERSION_1_5" does too.

But gl.glExtensionAvailable("GL_VERSION_3_0"); or > returns false.

Does isExtensionAvailable() method has nothing to do with OpenGL actually available for my system?
But just relavant to OpenGL library itself?


regards.
Junyeong
Replies: 2 - Last Post: January 17, 2010 13:51
by: rhdxmr
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close