Examples of disposeMesh()


Examples of org.terasology.world.chunks.RenderableChunk.disposeMesh()

        if (renderRegion.encompasses(pos)) {
            Iterator<RenderableChunk> iterator = chunksInProximity.iterator();
            while (iterator.hasNext()) {
                RenderableChunk chunk = iterator.next();
                if (chunk.getPosition().equals(pos)) {
                    chunk.disposeMesh();
                    iterator.remove();
                    Collections.sort(chunksInProximity, new ChunkFrontToBackComparator());
                    break;
                }
            }
View Full Code Here

Examples of org.terasology.world.chunks.RenderableChunk.disposeMesh()

                Iterator<RenderableChunk> iterator = chunksInProximity.iterator();
                while (iterator.hasNext()) {
                    RenderableChunk chunk = iterator.next();
                    if (chunk.getPosition().equals(pos)) {
                        chunk.disposeMesh();
                        iterator.remove();
                        break;
                    }
                }
            }
View Full Code Here

Examples of org.terasology.world.chunks.RenderableChunk.disposeMesh()

                while (chunksForRemove.hasNext()) {
                    Vector3i r = chunksForRemove.next();
                    RenderableChunk c = chunkProvider.getChunk(r);
                    if (c != null) {
                        chunksInProximity.remove(c);
                        c.disposeMesh();
                    }
                }

                // add
                for (Vector3i chunkPosition : viewRegion) {
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.