Login  Register

Re: OpenGL 3.0 support on OSX.

Posted by Sven Gothel on Feb 05, 2014; 11:06am
URL: https://forum.jogamp.org/OpenGL-3-0-support-on-OSX-tp4031450p4031452.html

On 02/05/2014 11:50 AM, anandcta123 [via jogamp] wrote:
> Hi,
>
> I am using MAC MINI with OSX Movericks and it is having Intel HD Graphics
> 3000. In their documentation, they will tell OpenGL 3.0 is supported. But when
> I call JOGL getGL3(), I will an exception indicating GL3 not implemented. Is
> there any way to configure to use OpenGL 3.0. I am having latest JOGl version
> and also XCode is upgraded with latest SDK.
>

You need to ask for the best 'core' or programmable GLProfile
when creating your GLCapabilities, see:

GL2ES2
  <http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/javax/media/opengl/GLProfile.html#getGL2ES2%28%29>

MaxProgrammable:
  <http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/javax/media/opengl/GLProfile.html#getMaxProgrammable%28boolean%29>

MaxProgrammableCore:
  <http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/javax/media/opengl/GLProfile.html#getMaxProgrammableCore%28boolean%29>

OSX only support OpenGL >= 3.0 as core profiles.
The default GLCapabilities will result using the highest
compatibility profile, i.e. GL4bc, GL3bc or GL2.

See demo/unit-test:
  <http://jogamp.org/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/newt/TestGearsES2NEWT.java;h=5d5b0c9a1d8d59414e3e0c7b844203a09d9b4b54;hb=HEAD#l464>


~Sven

> Thanks and Regards,
> Anand
>


signature.asc (894 bytes) Download Attachment