Little Bug in opengl function or parameter

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

Little Bug in opengl function or parameter

adi
Hi

Can't use
gl.glDepthMask(GL4bc.GL_FALSE);

The function needs the type boolean, but the correct
parameter GL4bc.GL_FALSE is an integer value.
What is wrong?
Reply | Threaded
Open this post in threaded view
|

Re: Little Bug in opengl function or parameter

Sven Gothel
Administrator
On 10/30/2012 08:01 PM, adi [via jogamp] wrote:
> Hi
>
> Can't use
> gl.glDepthMask(GL4bc.GL_FALSE);
>
> The function needs the type boolean, but the correct
> parameter GL4bc.GL_FALSE is an integer value.
> What is wrong?

C: "void glDepthMask(GLboolean flag)"
Java "public void glDepthMask(boolean flag)"

Use the Java 'boolean', not the GL integer GLboolean GL_TRUE, that's all.

~Sven



signature.asc (907 bytes) Download Attachment