summaryrefslogtreecommitdiffstats
path: root/src/demos/cg/runtime_ogl_vertex_fragment
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/cg/runtime_ogl_vertex_fragment
parent19528b880625ee830ab03cb2724311a874240fe8 (diff)
modifications due to refactorings in gluegen and jogl.
Diffstat (limited to 'src/demos/cg/runtime_ogl_vertex_fragment')
-rw-r--r--src/demos/cg/runtime_ogl_vertex_fragment/runtime_ogl_vertex_fragment.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/demos/cg/runtime_ogl_vertex_fragment/runtime_ogl_vertex_fragment.java b/src/demos/cg/runtime_ogl_vertex_fragment/runtime_ogl_vertex_fragment.java
index f33168f..b550324 100644
--- a/src/demos/cg/runtime_ogl_vertex_fragment/runtime_ogl_vertex_fragment.java
+++ b/src/demos/cg/runtime_ogl_vertex_fragment/runtime_ogl_vertex_fragment.java
@@ -333,9 +333,9 @@ public class runtime_ogl_vertex_fragment implements GLEventListener
if (P == null) {
int u, v;
- P = BufferUtil.newFloatBuffer(3*nVerts);
- N = BufferUtil.newFloatBuffer(3*nVerts);
- uv = BufferUtil.newFloatBuffer(2*nVerts);
+ P = GLBuffers.newDirectFloatBuffer(3*nVerts);
+ N = GLBuffers.newDirectFloatBuffer(3*nVerts);
+ uv = GLBuffers.newDirectFloatBuffer(2*nVerts);
// Fill in the position, normal, and texture coordinate arrays.
// Just loop over all of the vertices, compute their parametreic
@@ -358,7 +358,7 @@ public class runtime_ogl_vertex_fragment implements GLEventListener
}
// Now fill in the vertex index arrays
- indices = BufferUtil.newIntBuffer(3*nTris);
+ indices = GLBuffers.newDirectIntBuffer(3*nTris);
int ip = 0;
for (v = 0; v < nv-1; ++v) {
for (u = 0; u < nu-1; ++u) {