相机渲染

This commit is contained in:
YHH
2020-06-18 23:22:54 +08:00
parent feaac83ee7
commit e83bb087ea
13 changed files with 124 additions and 47 deletions

View File

@@ -109,6 +109,8 @@ class Scene extends egret.DisplayObjectContainer {
if (this.entityProcessors)
this.entityProcessors.begin();
this.camera.onSceneSizeChanged(this.stage.width, this.stage.height);
}
/** 场景激活 */
@@ -140,6 +142,13 @@ class Scene extends egret.DisplayObjectContainer {
this.entityProcessors.lateUpdate();
this.renderableComponents.updateList();
this.render();
}
public render(){
for (let i = 0; i <this._renderers.length; i ++){
this._renderers[i].render(this);
}
}
public prepRenderState() {