summaryrefslogtreecommitdiffstats
path: root/src/demos/es1/angeles/AngelesGLil.java
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/es1/angeles/AngelesGLil.java
parent19528b880625ee830ab03cb2724311a874240fe8 (diff)
modifications due to refactorings in gluegen and jogl.
Diffstat (limited to 'src/demos/es1/angeles/AngelesGLil.java')
-rwxr-xr-xsrc/demos/es1/angeles/AngelesGLil.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/demos/es1/angeles/AngelesGLil.java b/src/demos/es1/angeles/AngelesGLil.java
index bbfb86a..92be109 100755
--- a/src/demos/es1/angeles/AngelesGLil.java
+++ b/src/demos/es1/angeles/AngelesGLil.java
@@ -34,7 +34,7 @@ public class AngelesGLil implements GLEventListener {
public AngelesGLil(boolean enableBlending) {
blendingEnabled = enableBlending;
- quadVertices = BufferUtil.newFloatBuffer(12);
+ quadVertices = GLBuffers.newDirectFloatBuffer(12);
quadVertices.put(new float[]{
-1.0f, -1.0f,
1.0f, -1.0f,
@@ -45,13 +45,13 @@ public class AngelesGLil implements GLEventListener {
});
quadVertices.flip();
- light0Position=BufferUtil.newFloatBuffer(4);
- light0Diffuse=BufferUtil.newFloatBuffer(4);
- light1Position=BufferUtil.newFloatBuffer(4);
- light1Diffuse=BufferUtil.newFloatBuffer(4);
- light2Position=BufferUtil.newFloatBuffer(4);
- light2Diffuse=BufferUtil.newFloatBuffer(4);
- materialSpecular=BufferUtil.newFloatBuffer(4);
+ light0Position=GLBuffers.newDirectFloatBuffer(4);
+ light0Diffuse=GLBuffers.newDirectFloatBuffer(4);
+ light1Position=GLBuffers.newDirectFloatBuffer(4);
+ light1Diffuse=GLBuffers.newDirectFloatBuffer(4);
+ light2Position=GLBuffers.newDirectFloatBuffer(4);
+ light2Diffuse=GLBuffers.newDirectFloatBuffer(4);
+ materialSpecular=GLBuffers.newDirectFloatBuffer(4);
light0Position.put(new float[] { FixedPoint.toFloat(-0x40000), 1.0f, 1.0f, 0.0f });
light0Diffuse.put(new float[] { 1.0f, FixedPoint.toFloat(0x6666), 0.0f, 1.0f });
@@ -277,15 +277,15 @@ public class GLSpatial {
vComps= vertexComponents;
nComps = useNormalArray ? 3 : 0;
- int bStride = BufferUtil.sizeOfGLType(GL.GL_FLOAT) * ( vComps + cComps + nComps );
+ int bStride = GLBuffers.sizeOfGLType(GL.GL_FLOAT) * ( vComps + cComps + nComps );
int bSize = count * bStride;
- pBuffer = BufferUtil.newByteBuffer(bSize);
+ pBuffer = GLBuffers.newDirectByteBuffer(bSize);
interlArray = pBuffer.asFloatBuffer();
int vOffset = 0;
- int cOffset = BufferUtil.sizeOfGLType(GL.GL_FLOAT) * (vComps);
- int nOffset = BufferUtil.sizeOfGLType(GL.GL_FLOAT) * (vComps + cComps);
+ int cOffset = GLBuffers.sizeOfGLType(GL.GL_FLOAT) * (vComps);
+ int nOffset = GLBuffers.sizeOfGLType(GL.GL_FLOAT) * (vComps + cComps);
int[] tmp = new int[1];
gl.glGenBuffers(1, tmp, 0);