Code example for ShortBuffer

Methods: positionput

        ByteBuffer ibb =
            ByteBuffer.allocateDirect(indices.length * SHORT_BYTES);
        ShortBuffer shortIndexBuffer = ibb.asShortBuffer();
        this.mIndexBuffer = shortIndexBuffer;
     * Copies the given data into the instance 
     * variables mVertexBuffer, mTexcoordBuffer, mNormalBuffer, mColorBuffer, 
     * and mIndexBuffer. 
     * @param vertices an array of fixed-point vertex coordinates 
     * @param texcoords an array of fixed-point texture coordinates 
     * @param normals an array of fixed-point normal vector coordinates 
     * @param colors an array of fixed-point color channel values 
     * @param indices an array of int indices 
Stop searching for code, let great code find you!  Add Codota to your java IDE