Package com.ardor3d.scenegraph

Examples of com.ardor3d.scenegraph.InstancingManager


    private final boolean prepareForInstancing(final Spatial spatial) {
        boolean skipRenderQueue = false;

        if (spatial instanceof Mesh) {
            final Mesh mesh = (Mesh) spatial;
            final InstancingManager instancing = mesh.getMeshData().getInstancingManager();
            // Only one instance needs to be added to the render queue
            if (instancing != null) {
                skipRenderQueue = instancing.isAddedToRenderQueue();
                instancing.registerMesh(mesh);
            }
        }
        return skipRenderQueue;
    }
View Full Code Here

TOP

Related Classes of com.ardor3d.scenegraph.InstancingManager

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.