Package com.ardor3d.math

Examples of com.ardor3d.math.ColorRGBA


        super.read(capsule);
        lightList = capsule.readSavableList("lightList", new ArrayList<Light>());
        lightMask = capsule.readInt("lightMask", 0);
        backLightMask = capsule.readInt("backLightMask", 0);
        twoSidedOn = capsule.readBoolean("twoSidedOn", false);
        _globalAmbient = (ColorRGBA) capsule.readSavable("globalAmbient", new ColorRGBA(DEFAULT_GLOBAL_AMBIENT));
        localViewerOn = capsule.readBoolean("localViewerOn", false);
        separateSpecularOn = capsule.readBoolean("separateSpecularOn", false);
    }
View Full Code Here


     * angle 0, and colors white.
     *
     */
    public SpotLight() {
        super();
        setAmbient(new ColorRGBA(0, 0, 0, 1));
    }
View Full Code Here

    private void init(final Renderer renderer) {
        _tRenderer = TextureRendererFactory.INSTANCE.createTextureRenderer(_twidth, _theight, _depth, _samples,
                renderer, ContextManager.getCurrentContext().getCapabilities());

        _tRenderer.setBackgroundColor(new ColorRGBA(0, 0, 0, 0));
        resetTexture();
    }
View Full Code Here

        assert (null != from) : "parameter 'from' can not be null";
        assert (null != to) : "parameter 'to' can not be null";
        assert (null != caller) : "parameter 'caller' can not be null";

        final ColorRGBA color = ColorRGBA.fetchTempInstance().set(caller.getDefaultColor());

        color.lerpLocal(from, to, (float) delta);

        caller.setDefaultColor(color);

        ColorRGBA.releaseTempInstance(color);
    }
View Full Code Here

    @Override
    public void write(final OutputCapsule capsule) throws IOException {
        super.write(capsule);
        capsule.write(_meshData, "meshData", null);
        capsule.write(_modelBound, "modelBound", null);
        capsule.write(_defaultColor, "defaultColor", new ColorRGBA(ColorRGBA.WHITE));
        capsule.write(_isVisible, "visible", true);
    }
View Full Code Here

    @Override
    public void read(final InputCapsule capsule) throws IOException {
        super.read(capsule);
        _meshData = (MeshData) capsule.readSavable("meshData", null);
        _modelBound = (BoundingVolume) capsule.readSavable("modelBound", null);
        _defaultColor = (ColorRGBA) capsule.readSavable("defaultColor", new ColorRGBA(ColorRGBA.WHITE));
        _isVisible = capsule.readBoolean("visible", true);
    }
View Full Code Here

    public ColorRGBA fogColor = null;
    public FloatBuffer colorBuff = null;
    public FogState.CoordinateSource source = null;

    public FogStateRecord() {
        fogColor = new ColorRGBA(0, 0, 0, -1);
        colorBuff = BufferUtils.createColorBuffer(1);
    }
View Full Code Here

            if (newWidth != _standin.getWidth() || newHeight != _standin.getHeight()) {
                _standin.resize(newWidth, newHeight);
            }

            // Prepare our default color with the correct alpha value for opacity.
            final ColorRGBA color = ColorRGBA.fetchTempInstance();
            color.set(1, 1, 1, getCombinedOpacity());
            _standin.setDefaultColor(color);
            ColorRGBA.releaseTempInstance(color);

            // Position standin quad properly
            _standin.setWorldTranslation(x, y, getWorldTranslation().getZ());
View Full Code Here

        if (UIContainer._textureRenderer == null) {
            final Camera cam = Camera.getCurrentCamera();
            UIContainer._textureRenderer = TextureRendererFactory.INSTANCE.createTextureRenderer(cam.getWidth(), cam
                    .getHeight(), renderer, ContextManager.getCurrentContext().getCapabilities());
            if (UIContainer._textureRenderer != null) {
                UIContainer._textureRenderer.setBackgroundColor(new ColorRGBA(0f, 1f, 0f, 0f));
                UIContainer._textureRenderer.setMultipleTargets(true);
            } else {
                // Can't make standin.
                _useStandin = false;
                return;
View Full Code Here

     */
    public void setTint(final ReadOnlyColorRGBA color) {
        if (color == null) {
            _tint = null;
        } else if (_tint == null) {
            _tint = new ColorRGBA(color);
        } else {
            _tint.set(color);
        }
    }
View Full Code Here

TOP

Related Classes of com.ardor3d.math.ColorRGBA

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.