新增场景策略适配

This commit is contained in:
yhh
2020-12-31 16:38:09 +08:00
parent 6f1fc314b6
commit 01c6c306b1
11 changed files with 612 additions and 173 deletions

View File

@@ -3,30 +3,25 @@ module es {
/**
* 在图形设备重置时触发。当这种情况发生时任何渲染目标或其他内容的VRAM将被擦除需要重新生成
*/
GraphicsDeviceReset,
graphicsDeviceReset,
/**
* 当场景发生变化时触发
*/
SceneChanged,
sceneChanged,
/**
* 当设备方向改变时触发
*/
OrientationChanged,
/**
* 当每帧事件触发时
*/
FrameUpdated,
orientationChanged,
/**
* 当Core.useCustomUpdate为true时则派发该事件
*/
SceneUpdated,
/**
* 当场景需要绘制时
*/
CallDraw,
/**
* 当需要GC时
*/
CallGC,
sceneUpdated,
addDefaultRender,
setRenderTarget,
clearGraphics,
disposeRenderTarget,
resolutionScale,
resolutionOffset,
createRenderTarget,
}
}