Bug 15 - GLuint is mapped to int instead of long
Summary: GLuint is mapped to int instead of long
Status: VERIFIED WONTFIX
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-06-23 01:00 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:27 CET


---- Reported by pepijnve 2003-06-23 01:00:50 ----

GLuint parameters are converted to java int paramters. This causes incorrect
values to be read on the java side for instance when performing selection. The
int array that the glSelectBuffer(int size, int[] buffer) method receives
contains values that are incorrect if they are not converted to long values
first (ie intValue & 0xFFFFFFFFL).



---- Additional Comments From kbr 2003-07-14 22:38:03 ----

This will not be fixed. There is no way to efficiently map an integral C type to
a Java int type of a different size. You will have to manually zero-extend these
values. If you have suggestions on how to make this easier for the end user
(perhaps with a helper class) please file an RFE.




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

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