Jogamp
modifications due to refactorings in gluegen and jogl.
authorMichael Bien <mbien@fh-landshut.de>
Mon, 29 Mar 2010 13:47:58 +0000 (15:47 +0200)
committerMichael Bien <mbien@fh-landshut.de>
Mon, 29 Mar 2010 13:47:58 +0000 (15:47 +0200)
src/com/mbien/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java
src/com/mbien/opencl/demos/julia3d/Renderer.java

index 263c1a6..36e67bb 100644 (file)
@@ -18,7 +18,7 @@ import javax.media.opengl.glu.gl2.GLUgl2;
 import javax.swing.JFrame;
 import javax.swing.SwingUtilities;
 
-import static com.jogamp.opengl.util.BufferUtil.*;
+import static com.jogamp.gluegen.runtime.Buffers.*;
 
 /**
  * JOCL - JOGL interoperability example.
index db9c5a7..5eaf219 100644 (file)
@@ -1,7 +1,6 @@
 package com.mbien.opencl.demos.julia3d;
 
 import com.mbien.opencl.demos.julia3d.structs.RenderingConfig;
-import com.jogamp.opengl.util.BufferUtil;
 import com.jogamp.opengl.util.awt.TextRenderer;
 import java.awt.Dimension;
 import java.awt.Font;
@@ -16,6 +15,7 @@ import javax.media.opengl.GLProfile;
 import javax.media.opengl.awt.GLCanvas;
 import javax.swing.JFrame;
 
+import static com.jogamp.gluegen.runtime.Buffers.*;
 import static javax.media.opengl.GL2.*;
 import static java.lang.String.*;
 
@@ -43,7 +43,7 @@ public class Renderer implements GLEventListener {
 
         timer = new Timer();
 
-        juliaSlice = BufferUtil.newFloatBuffer(MU_RECT_SIZE * MU_RECT_SIZE * 4);
+        juliaSlice = newDirectFloatBuffer(MU_RECT_SIZE * MU_RECT_SIZE * 4);
 
         canvas = new GLCanvas(new GLCapabilities(GLProfile.get(GLProfile.GL2)));
         canvas.addGLEventListener(this);
http://JogAmp.org git info: FAQ, tutorial and man pages.