Sha256: 830e1eb3351cf6df9a60d92679b80d245155b02ad4af59726d7019df8132efb0

Contents?: true

Size: 1.02 KB

Versions: 5

Compression:

Stored size: 1.02 KB

Contents

/*global define*/
define(function() {
    "use strict";

    /**
     * Represents lists of commands for drawing for each render pass.
     *
     * @alias CommandLists
     * @constructor
     */
    var CommandLists = function() {
        /**
         * The command list for a color pass.
         * @type {Array}
         * @default []
         */
        this.colorList = [];

        /**
         * The command list for a pick pass.
         * @type {Array}
         * @default []
         */
        this.pickList = [];

        /**
         * The command list for an overlay pass.
         * @type {Array}
         * @default []
         */
        this.overlayList = [];
    };

    CommandLists.prototype.empty = function() {
        return this.colorList.length === 0 && this.pickList.length === 0 && this.overlayList.length === 0;
    };

    CommandLists.prototype.removeAll = function() {
        this.colorList.length = 0;
        this.pickList.length = 0;
        this.overlayList.length = 0;
    };

    return CommandLists;
});

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cesium-0.21.1 app/assets/javascripts/Renderer/CommandLists.js
cesium-0.21 app/assets/javascripts/Renderer/CommandLists.js
cesium-0.20.0 app/assets/javascripts/Renderer/CommandLists.js
cesium-0.19.0 app/assets/javascripts/Renderer/CommandLists.js
cesium-0.18.0 app/assets/javascripts/Renderer/CommandLists.js