Package com.ardor3d.extension.ui.util

Examples of com.ardor3d.extension.ui.util.UIQuad


                _useStandin = false;
                return;
            }
        }

        _standin = new UIQuad("container_standin", 1, 1);
        // no frustum culling checks
        _standin.getSceneHints().setCullHint(CullHint.Never);
        // no lighting
        _standin.getSceneHints().setLightCombineMode(LightCombineMode.Off);
        // a single texture
View Full Code Here


        _color.setAlpha(oldA);
    }

    private static UIQuad createStandinQuad() {
        final UIQuad quad = new UIQuad("standin", 1, 1);

        final BlendState blend = new BlendState();
        blend.setBlendEnabled(true);
        blend.setSourceFunction(SourceFunction.SourceAlpha);
        blend.setDestinationFunction(DestinationFunction.OneMinusSourceAlpha);
        quad.setRenderState(blend);
        quad.updateWorldRenderStates(false);

        return quad;
    }
View Full Code Here

TOP

Related Classes of com.ardor3d.extension.ui.util.UIQuad

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.