Package java.nio

Examples of java.nio.FloatBuffer.clear()


                            matrixMap.put(satellite, worldMatrix1);
                        }

                        CelestialBodyRenderEvent.Post postEvent = new CelestialBodyRenderEvent.Post(satellite);
                        MinecraftForge.EVENT_BUS.post(postEvent);
                        fb.clear();
                        GL11.glPopMatrix();
                    }
                }
            }
        }
View Full Code Here


   
    //Unbind the Buffers
    GL15.glBindBuffer(GL15.GL_ARRAY_BUFFER, 0);
    GL30.glBindVertexArray(0);
   
    fb.clear();
    this.vertices.clear();
  }
 
  /**
   * Renders the Vertices
View Full Code Here

     */
    private void getCurrent(final Mesh dataCopy) {
        if (_morphMesh.getMeshData().getColorBuffer() != null) {
            FloatBuffer dcColors = dataCopy.getMeshData().getColorBuffer();
            if (dcColors != null) {
                dcColors.clear();
            }
            final FloatBuffer mmColors = _morphMesh.getMeshData().getColorBuffer();
            mmColors.clear();
            if (dcColors == null || dcColors.capacity() != mmColors.capacity()) {
                dcColors = BufferUtils.createFloatBuffer(mmColors.capacity());
View Full Code Here

            FloatBuffer dcColors = dataCopy.getMeshData().getColorBuffer();
            if (dcColors != null) {
                dcColors.clear();
            }
            final FloatBuffer mmColors = _morphMesh.getMeshData().getColorBuffer();
            mmColors.clear();
            if (dcColors == null || dcColors.capacity() != mmColors.capacity()) {
                dcColors = BufferUtils.createFloatBuffer(mmColors.capacity());
                dcColors.clear();
                dataCopy.getMeshData().setColorBuffer(dcColors);
            }
View Full Code Here

            dcColors.flip();
        }
        if (_morphMesh.getMeshData().getVertexBuffer() != null) {
            FloatBuffer dcVerts = dataCopy.getMeshData().getVertexBuffer();
            if (dcVerts != null) {
                dcVerts.clear();
            }
            final FloatBuffer mmVerts = _morphMesh.getMeshData().getVertexBuffer();
            mmVerts.clear();
            if (dcVerts == null || dcVerts.capacity() != mmVerts.capacity()) {
                dcVerts = BufferUtils.createFloatBuffer(mmVerts.capacity());
View Full Code Here

            FloatBuffer dcVerts = dataCopy.getMeshData().getVertexBuffer();
            if (dcVerts != null) {
                dcVerts.clear();
            }
            final FloatBuffer mmVerts = _morphMesh.getMeshData().getVertexBuffer();
            mmVerts.clear();
            if (dcVerts == null || dcVerts.capacity() != mmVerts.capacity()) {
                dcVerts = BufferUtils.createFloatBuffer(mmVerts.capacity());
                dcVerts.clear();
                dataCopy.getMeshData().setVertexBuffer(dcVerts);
            }
View Full Code Here

            dcVerts.flip();
        }
        if (_morphMesh.getMeshData().getNormalBuffer() != null) {
            FloatBuffer dcNorms = dataCopy.getMeshData().getNormalBuffer();
            if (dcNorms != null) {
                dcNorms.clear();
            }
            final FloatBuffer mmNorms = _morphMesh.getMeshData().getNormalBuffer();
            mmNorms.clear();
            if (dcNorms == null || dcNorms.capacity() != mmNorms.capacity()) {
                dcNorms = BufferUtils.createFloatBuffer(mmNorms.capacity());
View Full Code Here

            FloatBuffer dcNorms = dataCopy.getMeshData().getNormalBuffer();
            if (dcNorms != null) {
                dcNorms.clear();
            }
            final FloatBuffer mmNorms = _morphMesh.getMeshData().getNormalBuffer();
            mmNorms.clear();
            if (dcNorms == null || dcNorms.capacity() != mmNorms.capacity()) {
                dcNorms = BufferUtils.createFloatBuffer(mmNorms.capacity());
                dcNorms.clear();
                dataCopy.getMeshData().setNormalBuffer(dcNorms);
            }
View Full Code Here

            dcInds.flip();
        }
        if (_morphMesh.getMeshData().getTextureCoords(0) != null) {
            FloatBuffer dcTexs = dataCopy.getMeshData().getTextureCoords(0).getBuffer();
            if (dcTexs != null) {
                dcTexs.clear();
            }
            final FloatBuffer mmTexs = _morphMesh.getMeshData().getTextureCoords(0).getBuffer();
            mmTexs.clear();
            if (dcTexs == null || dcTexs.capacity() != mmTexs.capacity()) {
                dcTexs = BufferUtils.createFloatBuffer(mmTexs.capacity());
View Full Code Here

            FloatBuffer dcTexs = dataCopy.getMeshData().getTextureCoords(0).getBuffer();
            if (dcTexs != null) {
                dcTexs.clear();
            }
            final FloatBuffer mmTexs = _morphMesh.getMeshData().getTextureCoords(0).getBuffer();
            mmTexs.clear();
            if (dcTexs == null || dcTexs.capacity() != mmTexs.capacity()) {
                dcTexs = BufferUtils.createFloatBuffer(mmTexs.capacity());
                dcTexs.clear();
                dataCopy.getMeshData().setTextureCoords(new FloatBufferData(dcTexs, 2), 0);
            }
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.