Package com.ardor3d.scenegraph

Examples of com.ardor3d.scenegraph.IntBufferData


        }

        // Index buffer:
        IndexBufferData<?> indices = mesh.getMeshData().getIndices();
        if (indices.getBuffer().capacity() < _splitIndices.length) {
            indices = new IntBufferData(BufferUtils.createIntBuffer(_splitIndices));
        } else {
            indices.getBuffer().clear();
            for (final int i : _splitIndices) {
                indices.put(i);
            }
View Full Code Here


        data = (IntBufferData) capsule.readSavable("data", null);
        // XXX: transitional
        if (data == null) {
            final IntBuffer buff = capsule.readIntBuffer("data", null);
            if (buff != null) {
                data = new IntBufferData(buff);
            }
        }
    }
View Full Code Here

                    counts[j++] = group.getIndices().length;
                }
            }
            final IndexBufferData<?> newIndices = BufferUtils.createIndexBufferData(indexCount, md.getVertexCount());
            for (final PrimitiveGroup group : strips) {
                final IntBufferData data = new IntBufferData(group.getIndices().length);
                data.getBuffer().put(group.getIndices());
                data.rewind();
                newIndices.put(data);
            }
            newIndices.rewind();

            // ask mesh to apply new index data
View Full Code Here

TOP

Related Classes of com.ardor3d.scenegraph.IntBufferData

Copyright © 2018 www.massapicom. 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.