From 0b708395a18eb6a2ae5372ff414bc75830ce19b6 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Mon, 29 Mar 2010 15:38:31 +0200 Subject: modifications due to refactorings in gluegen and jogl. --- src/demos/es1/RedSquare.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/demos/es1/RedSquare.java') 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); -- cgit v1.2.3