mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-06 03:22:39 +08:00
29 lines
571 B
TypeScript
29 lines
571 B
TypeScript
import { Root } from '../../core/root';
|
|
import { RenderScene } from '../scene/render-scene';
|
|
import { RenderView } from '../../pipeline/render-view';
|
|
|
|
export class GUI {
|
|
|
|
public get root (): Root {
|
|
return this._root;
|
|
}
|
|
|
|
public get scene (): RenderScene {
|
|
return this._scene;
|
|
}
|
|
|
|
private _root: Root;
|
|
private _scene: RenderScene;
|
|
|
|
constructor (root: Root) {
|
|
this._root = root;
|
|
this._scene = this._root.createScene({
|
|
name: 'GUIScene',
|
|
});
|
|
}
|
|
|
|
public render (view: RenderView) {
|
|
|
|
}
|
|
}
|