<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>1263</bug_id>
          
          <creation_ts>2015-11-03 15:41:04 +0100</creation_ts>
          <short_desc>glDrawElements missing a Buffer param in GL.java</short_desc>
          <delta_ts>2015-11-04 10:29:46 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>core</component>
          <version>tbd</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="vaxquis">spamove</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>gouessej</cc>
    
    <cc>sgothel</cc>
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs></cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>5469</commentid>
    <comment_count>0</comment_count>
    <who name="vaxquis">spamove</who>
    <bug_when>2015-11-03 15:41:04 +0100</bug_when>
    <thetext>as per https://www.opengl.org/sdk/docs/man/html/glDrawElements.xhtml , glDrawElements is present in all GL versions &gt;= 2.0 ; it&apos;s also present in GL.java interface, yet with a faulty signature - since the C method has
	GLenum mode,
 	GLsizei count,
 	GLenum type,
 	const GLvoid * indices
as parameters, it would follow that the GL interface should have 
        int mode,
        int count,
        int type,
        Buffer indices
(see e.g. https://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/com/jogamp/opengl/GLES2.html , https://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/com/jogamp/opengl/GL2ES1.html), yet GL (https://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/com/jogamp/opengl/GL.html#glDrawElements(int, int, int, long) has only a method with
        int mode,
        int count,
        int type,
        long indices_buffer_offset
as its signature, with no Buffer overload.

I assume the proper signatures would&apos;ve been
        int mode,
        int count,
        int type,
        int[] indices_buffer,
        long indices_buffer_offset
&amp;
        int mode,
        int count,
        int type,
        Buffer indices

NB I suppose it&apos;s some kind of obscure GlueGen artifact.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5470</commentid>
    <comment_count>1</comment_count>
    <who name="vaxquis">spamove</who>
    <bug_when>2015-11-03 16:23:37 +0100</bug_when>
    <thetext>as a side note: there should probably be either int/short/byte overload versions for arrays and/or a Buffer one (glDrawElements can accept all three types per spec).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>