Package java.nio

Examples of java.nio.IntBuffer.position()


       
        GL15.glBindBuffer(GL15.GL_ARRAY_BUFFER, terrainVBO);
        GL15.glBufferData(GL15.GL_ARRAY_BUFFER, dataBuffer, GL15.GL_STATIC_DRAW);
       
        IntBuffer terrainIndexVBOBuffer = terrainVBOBuffer;
        terrainIndexVBOBuffer.position(0);
        GL15.glGenBuffers(terrainIndexVBOBuffer);
        terrainIndexVBO = terrainIndexVBOBuffer.get(0);
               
        ShortBuffer terrainIndicesDataBuffer =  ByteBuffer.allocateDirect(terrainIndices.length*4).order(ByteOrder.nativeOrder()).asShortBuffer();
        terrainIndicesDataBuffer.put(terrainIndices);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.