import { Vector2 } from "../math/Vector2" ; import { Camera } from "./camera/Camera" ; import { RenderTarget } from "./texture/RenderTarget" ; export interface IRenderer { readonly screenSize : Vector2 ; readonly defaultPerspectiveCamera : Camera | null ; readonly canvas : HTMLCanvasElement ; readonly renderTarget : RenderTarget | null ; showWireFrame : boolean ; showShadowCascades : boolean ; setRenderTarget : ( target : RenderTarget | null , cubeMapFace ? : number ) => void ; } namespace Private { export let instance ; } hidden export class IRendererInternal { static set instance ( instance ) { Private . instance = instance ; } static get instance ( ) { return Private . instance ; } }