JOGL GL_GEOMETRY_SHADER_EXT

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

JOGL GL_GEOMETRY_SHADER_EXT

iuiz
Hi,

I was trying to write a simple geometry shader using jogl2 with GL2. However I can't find the GL_GEOMETRY_SHADER_EXT bit. Can you help me?

Thx,
iuiz
Reply | Threaded
Open this post in threaded view
|

Re: JOGL GL_GEOMETRY_SHADER_EXT

Sven Gothel
Administrator
On Monday, May 09, 2011 02:34:22 pm iuiz [via jogamp] wrote:

>
> Hi,
>
> I was trying to write a simple geometry shader using jogl2 with GL2. However
> I can't find the GL_GEOMETRY_SHADER_EXT bit. Can you help me?
>
> Thx,
> iuiz
>
> _______________________________________________
> If you reply to this email, your message will be added to the discussion below:
> http://forum.jogamp.org/JOGL-GL-GEOMETRY-SHADER-EXT-tp2918521p2918521.html
> To start a new topic under jogl, email [hidden email]
> To unsubscribe from jogl, visit the ARB version ..

build-x86_64/jogl/gensrc/classes/javax/media/opengl/GL2GL3.java:  public static final int GL_GEOMETRY_SHADER_ARB  0x8DD9;

If you have a nice unit test and/or demo, pls offer this one to us
so we can have it in our repo. Thx.

~Sven
Reply | Threaded
Open this post in threaded view
|

Re: JOGL GL_GEOMETRY_SHADER_EXT

gouessej
Administrator
In reply to this post by iuiz
Rather use GL_ARB_geometry_shader4.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: JOGL GL_GEOMETRY_SHADER_EXT

iuiz
Thx for your answers. How can I use GL_ARB_geometry_shader4? When I use
System.out.println("is GL_ARB_geometry_shader4 available? - " + gl.isExtensionAvailable("GL_ARB_geometry_shader4")); I get true as an answer ;). But I don't know what to do from there.

In my current shader abstraction I do something like this:

		if (vertexFile != null) {
			this.vertexShader = new ShaderObject(gl, GL2.GL_VERTEX_SHADER, vertexFile);
		}
		if (fragmentFile != null) {
			this.fragmentShader = new ShaderObject(gl, GL2.GL_FRAGMENT_SHADER, fragmentFile);
		}
Reply | Threaded
Open this post in threaded view
|

Re: JOGL GL_GEOMETRY_SHADER_EXT

gouessej
Administrator
Use GL3.GL_GEOMETRY_SHADER of course :)
Julien Gouesse | Personal blog | Website