diff options
author | Kenneth Russel <[email protected]> | 2004-10-04 22:55:39 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2004-10-04 22:55:39 +0000 |
commit | 4b93bb531605fa082bdad6452d3e6a51cbb15bed (patch) | |
tree | c1de89e45cb309b82af89f90a06f263c305f2fe0 /src/net/java/games/gluegen/MethodBinding.java | |
parent | a74c41bb00bb2fd0a6d2a5470332dbaa1e53958c (diff) |
Fixed Issue 71: glMultiDrawElements() is missing
Added support to GlueGen to handle pointer-to-pointer types for
primitive types, like void** and int**. These are exposed as arrays of
appropriately-typed direct java.nio Buffers for simplicity. Checks for
whether the buffers are direct are performed and null checks for the
individual Buffer objects are done as well. Fixed an existing bug in
the conversion of outgoing char** arguments in C to String[] in Java
where null checks were missing; this showed up as crashes in
glShaderSourceARB. Exposed glMultiDrawElements and several other
less-common entry points taking void** arguments.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@154 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/net/java/games/gluegen/MethodBinding.java')
-rw-r--r-- | src/net/java/games/gluegen/MethodBinding.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/java/games/gluegen/MethodBinding.java b/src/net/java/games/gluegen/MethodBinding.java index 5a88f00f8..fd2b7b7bc 100644 --- a/src/net/java/games/gluegen/MethodBinding.java +++ b/src/net/java/games/gluegen/MethodBinding.java @@ -185,7 +185,8 @@ public class MethodBinding { Type cArgType = getCArgumentType(i); if (javaArgType.isCompoundTypeWrapper() || javaArgType.isNIOBuffer() || - cArgType.isArray()) { + cArgType.isArray() || + javaArgType.isNIOBufferArray()) { // Needs unwrapping of accessors, checking of array // lengths, or checking of direct buffer property needsBody = true; |