Login  Register

Re: glClipPlanef not work in Java 11

Posted by Sven Gothel on Oct 08, 2019; 1:58pm
URL: https://forum.jogamp.org/glClipPlanef-not-work-in-Java-11-tp4040085p4040095.html

On 10/8/19 4:19 AM, yaqiang [via jogamp] wrote:
> Althrough the problem was solve by using the double variant, but I don't
> understand why double variant can do it while float variant can not?

glClipPlanef is only implemented in your OpenGL driver,
if the extension support one of: GL_VERSION_ES_CM, GL_IMG_user_clip_plane,
GL_OES_single_precision extension.

That is what I tried to explain earlier.

/** Entry point to C language function: <code> void {@native
glClipPlanef}(GLenum plane, const GLfloat *  equation) </code> <br>Part of
<code>GL_VERSION_ES_CM</code>, <code>GL_IMG_user_clip_plane</code>,
<code>GL_OES_single_precision</code><br>Alias for:
<code>glClipPlanefIMG</code>, <code>glClipPlanefOES</code>
      @param equation a direct or array-backed {@link java.nio.FloatBuffer}   */
  public void glClipPlanef(int plane, FloatBuffer equation);

~Sven