import {Objects} from '../../runtime/common/lang/Objects'; //import {Light} from './light/Light'; //========================================================== // 处理环境。 // // @class // @author maocy // @history 160305 //========================================================== export interface IProcessContext { // // 改变状态 // public changed = false; // // 主方向光源 // public directionalLight = null; // 光源集合 //lights: FObjects; // // 渲染集合 // public renderables = null; // // 所有渲染集合 // public allRenderables = null; // //========================================================== // // 构造处理。 // // // // @method // //========================================================== // public constructor() { // super(); // // 初始化参数 // this.lights = new FObjects(); // this.renderables = new FObjects(); // this.allRenderables = new FObjects(); // } // //========================================================== // // 判断是否变更过。 // // // // @method // // @return Boolean 变更过 // //========================================================== // public isChanged() { // return this.changed; // } // //========================================================== // // 准备处理。 // // // // @method // //========================================================== // public prepare() { // // 数据未改变 // this.changed = false; // // 清空全部渲染对象 // this.allRenderables.clear(); // } // //========================================================== // // 重置处理。 // // // // @method // //========================================================== // public reset() { // // 清空渲染集合 // this.renderables.clear(); // } // //========================================================== // // 更新处理。 // // // // @method // //========================================================== // public update() { // var renderables = this.renderables; // var count = renderables.count(); // for (var i: number = 0; i < count; i++) { // var renderable = renderables.at(i); // renderable.update(this); // } // this.changed = true; // } // //========================================================== // // 释放处理。 // // // // @method // //========================================================== // public dispose() { // this.lights = RObject.free(this.lights); // this.renderables = RObject.free(this.renderables); // this.allRenderables = RObject.free(this.allRenderables); // super.dispose(); // } }