summaryrefslogtreecommitdiffstats
path: root/src/demos/es1/RedSquare.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-03-29 15:38:31 +0200
committerMichael Bien <[email protected]>2010-03-29 15:38:31 +0200
commit0b708395a18eb6a2ae5372ff414bc75830ce19b6 (patch)
treef2cc555a6085f15972c319311dd01aa734b42b86 /src/demos/es1/RedSquare.java
parent19528b880625ee830ab03cb2724311a874240fe8 (diff)
modifications due to refactorings in gluegen and jogl.
Diffstat (limited to 'src/demos/es1/RedSquare.java')
-rwxr-xr-xsrc/demos/es1/RedSquare.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/demos/es1/RedSquare.java b/src/demos/es1/RedSquare.java
index d391442..4741258 100755
--- a/src/demos/es1/RedSquare.java
+++ b/src/demos/es1/RedSquare.java
@@ -1,5 +1,6 @@
package demos.es1;
+import com.jogamp.gluegen.runtime.Buffers;
import java.nio.*;
import java.util.*;
import javax.media.opengl.*;
@@ -241,8 +242,8 @@ public class RedSquare extends Thread implements WindowListener, KeyListener, Mo
System.err.println(Thread.currentThread()+" GLU: " + glu);
// Allocate vertex arrays
- colors = BufferUtil.newFloatBuffer(16);
- vertices = BufferUtil.newFloatBuffer(12);
+ colors = Buffers.newDirectFloatBuffer(16);
+ vertices = Buffers.newDirectFloatBuffer(12);
// Fill them up
colors.put( 0, 1); colors.put( 1, 0); colors.put( 2, 0); colors.put( 3, 1);
colors.put( 4, 0); colors.put( 5, 0); colors.put( 6, 1); colors.put( 7, 1);