aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/gluegen/runtime/StructAccessor.java
diff options
context:
space:
mode:
authorMichael Bien <mbien@fh-landshut.de>2010-03-29 03:53:14 +0200
committerMichael Bien <mbien@fh-landshut.de>2010-03-29 03:53:14 +0200
commit25cc744f6bd5ca97e0ae58fa7e1c35f7b0f3046d (patch)
treeaf1b4fa7cf9b701d736296ce8ca01df21e48fe54 /src/java/com/jogamp/gluegen/runtime/StructAccessor.java
parentb9cf94f7379251904728544882b58994a5f78de1 (diff)
moved several common utility methods from JOGL's BufferUtil to GlueGen's BufferFactory.
Diffstat (limited to 'src/java/com/jogamp/gluegen/runtime/StructAccessor.java')
-rw-r--r--src/java/com/jogamp/gluegen/runtime/StructAccessor.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/com/jogamp/gluegen/runtime/StructAccessor.java b/src/java/com/jogamp/gluegen/runtime/StructAccessor.java
index 80673a3..6f3ad7d 100644
--- a/src/java/com/jogamp/gluegen/runtime/StructAccessor.java
+++ b/src/java/com/jogamp/gluegen/runtime/StructAccessor.java
@@ -251,7 +251,7 @@ public class StructAccessor {
IntBuffer intBuffer = intBuffer();
long lo = 0x00000000FFFFFFFFL & ((long) intBuffer.get(slot));
long hi = 0x00000000FFFFFFFFL & ((long) intBuffer.get(slot + 1));
- if (BufferFactory.isLittleEndian()) {
+ if (Platform.isLittleEndian()) {
return hi << 32 | lo;
}
return lo << 32 | hi;
@@ -262,7 +262,7 @@ public class StructAccessor {
IntBuffer intBuffer = intBuffer();
int lo = (int) ((v) & 0x00000000FFFFFFFFL);
int hi = (int) ((v >> 32) & 0x00000000FFFFFFFFL);
- if (BufferFactory.isLittleEndian()) {
+ if (Platform.isLittleEndian()) {
intBuffer.put(slot, lo);
intBuffer.put(slot + 1, hi);
} else {