diff options
author | Kenneth Russel <[email protected]> | 2006-01-13 07:29:40 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2006-01-13 07:29:40 +0000 |
commit | 4da1dead29db175817053837d7a685f10c3212b4 (patch) | |
tree | 44e33aa492c443b0ccbfef17a9795ca269a66291 /src/demos/vertexBufferObject/VertexBufferObject.java | |
parent | a30f6883a5a4bfb3bebd1e34697377ef56dd9241 (diff) |
Renamed com.sun.opengl.utils to com.sun.opengl.util. Moved
TextureIO-related classes to com.sun.opengl.util.texture and
TextureProvider, TextureWriter and format-specific readers to
com.sun.opengl.util.texture.spi. Renamed BufferUtils to BufferUtil.
Added ImageUtil and FileUtil. Cleaned up javadoc. Updated demos.
Cleaned up some imports.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@165 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos/vertexBufferObject/VertexBufferObject.java')
-rw-r--r-- | src/demos/vertexBufferObject/VertexBufferObject.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/demos/vertexBufferObject/VertexBufferObject.java b/src/demos/vertexBufferObject/VertexBufferObject.java index 6d5224d..e58d0fa 100644 --- a/src/demos/vertexBufferObject/VertexBufferObject.java +++ b/src/demos/vertexBufferObject/VertexBufferObject.java @@ -41,8 +41,7 @@ import javax.swing.*; import javax.media.opengl.*; import javax.media.opengl.glu.*; -import com.sun.opengl.utils.*; -import com.sun.opengl.utils.*; +import com.sun.opengl.util.*; import demos.common.*; import demos.util.*; @@ -354,8 +353,8 @@ public class VertexBufferObject extends Demo { buffers[i].vertices = sliceBuffer(bigArray, startIndex, sliceSize); buffers[i].normals = sliceBuffer(buffers[i].vertices, 3, buffers[i].vertices.limit() - 3); - buffers[i].vertexOffset = startIndex * BufferUtils.SIZEOF_FLOAT; - buffers[i].normalOffset = (startIndex + 3) * BufferUtils.SIZEOF_FLOAT; + buffers[i].vertexOffset = startIndex * BufferUtil.SIZEOF_FLOAT; + buffers[i].normalOffset = (startIndex + 3) * BufferUtil.SIZEOF_FLOAT; } } @@ -630,7 +629,7 @@ public class VertexBufferObject extends Demo { for (int i = 0; i < len; i++) { ++numDrawElementsCalls; gl.glDrawElements(primitive, 2 * STRIP_SIZE, GL.GL_UNSIGNED_INT, - i * 2 * STRIP_SIZE * BufferUtils.SIZEOF_INT); + i * 2 * STRIP_SIZE * BufferUtil.SIZEOF_INT); if(getFlag('f')) { gl.glFlush(); } @@ -737,7 +736,7 @@ public class VertexBufferObject extends Demo { elementBufferObject = tmp[0]; gl.glBindBufferARB(GL.GL_ELEMENT_ARRAY_BUFFER_ARB, elementBufferObject); gl.glBufferDataARB(GL.GL_ELEMENT_ARRAY_BUFFER_ARB, - linearElements.remaining() * BufferUtils.SIZEOF_INT, + linearElements.remaining() * BufferUtil.SIZEOF_INT, linearElements, GL.GL_STATIC_DRAW_ARB); gl.glBindBufferARB(GL.GL_ELEMENT_ARRAY_BUFFER_ARB, 0); |