Bug 28

Summary: All functions that take arrays as parameters should also take buffers
Product: [JogAmp] Jogl Reporter: Sven Gothel <sgothel>
Component: coreAssignee: Sven Gothel <sgothel>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P3    
Version: 1   
Hardware: All   
OS: all   
Type: DEFECT SCM Refs:
Workaround: ---

Description Sven Gothel 2010-03-24 07:45:43 CET


---- Reported by gregorypierce 2003-07-22 14:01:31 ----

There are many methods within the API which take arrays but don't have equivalent 
methods for taking Buffers. Methods like glMaterialfv and glLightfv should allow the user 
to pass in the material parameters as Buffers as opposed to arrays because many times 
when loading models the data will be segmented in Buffers that would be more cleanly 
passed into these methods as opposed to unpacking them into arrays and passing them to 
these methods.



---- Additional Comments From kbr 2004-04-20 18:41:46 ----

GlueGen has been updated to understand conversions from non-void* C
primitive pointer types to java.nio.Buffer subclasses. Some new
directives have been added to the JavaConfiguration class to control
emission of java.nio variants on a slightly finer grain, while also
allowing the default behavior to be changed to emit many more
combinations of java.nio and Java primitive array overloadings for
these functions. glSelectBuffer and glFeedbackBuffer have been made
NIO-only. The glue code for glEdgeFlagPointerEXT was also incorrect
and has been fixed by this change.




--- Bug imported by sgothel@jausoft.com 2010-03-24 07:45 EDT  ---

This bug was previously known as _bug_ 28 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=28