<?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>612</bug_id>
          
          <creation_ts>2012-09-03 02:58:14 +0200</creation_ts>
          <short_desc>glVertexAttribIPointer(int, int, int, int, long) is missing</short_desc>
          <delta_ts>2012-09-20 11:58:12 +0200</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>opengl</component>
          <version>2</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>giocondo.fulbright</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>---</cf_type>
          <cf_scm_refs>jogl 3c09f42d372f89bdb41ab4cf2f96962971ad909a</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1778</commentid>
    <comment_count>0</comment_count>
    <who name="">giocondo.fulbright</who>
    <bug_when>2012-09-03 02:58:14 +0200</bug_when>
    <thetext>GL2ES2.glVertexAttribPointer() comes in two versions, one that takes a Buffer and one that takes a long.  The long is interpreted as an offset in a bound VBO.  In the latest OpenGL, glVertexAttribIPointer() is also supposed to be able to take an offset that&apos;s just an integer, but JOGL&apos;s GL interfaces do not expose a version of the method that does that.  It appears that the same problem exists with glVertexAttribLPointer(), incidentally.

In the thread http://forum.jogamp.org/Where-is-glVertexAttribIPointer-that-doesn-t-take-a-Buffer-td4026005.html , Sven Gothel comments:

&gt; but my 
&gt; main question is something else:  In the process of fiddling with this I 
&gt; learned about glVertexAttribIPointer() which seemed like something I ought to 
&gt; try, since I was passing ints and that function seems to be specialized for 
&gt; ints or something.  But the interfaces GL4 and GL3 seem to lack 
&gt; glVertexAttribIPointer(int, int, int, int, long).  I&apos;m using a GL3, which 
&gt; should have that method.  What&apos;s the problem? 

I see, the code generation for this method doesn&apos;t match the GL3 spec, 
where (both) glVertexAttribIPointer(..)&apos;s and glVertexAttribPointer(..)&apos;s 
&apos;void *pointer&apos; argument is an offset to a bound VBO (GL_ARRAY_BUFFER). 

GL2 spec (and the GL2/GL3 compatibility profile) define 
glVertexAttribPointer(..)&apos;s &apos;void *pointer&apos; argument 
either as a direct data source, _or_ as an offset if a VBO (GL_ARRAY_BUFFER) is bound.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1837</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2012-09-20 11:58:12 +0200</bug_when>
    <thetext>fixed in jogl commit 3c09f42d372f89bdb41ab4cf2f96962971ad909a</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>