diff options
author | Michael Bien <[email protected]> | 2010-03-29 15:47:58 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-03-29 15:47:58 +0200 |
commit | fe567f8d89d6b4aa45f34b4f2557db5db0b158da (patch) | |
tree | 7a9fdf13364c4b6b6a18b27bb7153030e288b1ae /src/com | |
parent | 5a6520db82ea91cda4630ad82c63ebf1cf44ce7f (diff) |
modifications due to refactorings in gluegen and jogl.
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/mbien/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java | 2 | ||||
-rw-r--r-- | src/com/mbien/opencl/demos/julia3d/Renderer.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/com/mbien/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java b/src/com/mbien/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java index 263c1a6..36e67bb 100644 --- a/src/com/mbien/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java +++ b/src/com/mbien/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java @@ -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. diff --git a/src/com/mbien/opencl/demos/julia3d/Renderer.java b/src/com/mbien/opencl/demos/julia3d/Renderer.java index db9c5a7..5eaf219 100644 --- a/src/com/mbien/opencl/demos/julia3d/Renderer.java +++ b/src/com/mbien/opencl/demos/julia3d/Renderer.java @@ -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); |