Examples of enforceStates()


Examples of com.ardor3d.renderer.RenderContext.enforceStates()

        }
        camera.apply(renderer);

        final RenderContext context = ContextManager.getCurrentContext();

        context.enforceStates(enforcedStates);

        if (spatial != null) {
            spatial.onDraw(renderer);
        } else {
            for (final Spatial spat : spatials) {
View Full Code Here

Examples of com.ardor3d.renderer.TextureRenderer.enforceStates()

            texRend.getCamera().setFrame(camera);
            texRend.getCamera().setFrustum(camera);
            texRend.getCamera().setProjectionMode(camera.getProjectionMode());
        }

        texRend.enforceStates(enforcedStates);

        // draw to texture
        if (spatial != null) {
            texRend.render(spatial, _texture, Renderer.BUFFER_COLOR_AND_DEPTH);
        } else {
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.