Bug 28 - All functions that take arrays as parameters should also take buffers
Summary: All functions that take arrays as parameters should also take buffers
Status: VERIFIED FIXED
Alias: None
Product: Jogl
Classification: JogAmp
Component: core (show other bugs)
Version: 1
Hardware: All all
: P3 normal
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2003-07-22 02:01 CEST by Sven Gothel
Modified: 2010-03-24 07:45 CET (History)
0 users

See Also:
Type: DEFECT
SCM Refs:
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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