WebWindow constructor
WebWindow(
- String canvasId
Implementation
WebWindow(String canvasId) : super(0, 0, canvasId) {
_canvas = document.getElementById(canvasId) as CanvasElement;
width = _canvas.width!;
height = _canvas.height!;
_lastWidth = width;
_lastHeight = height;
graphics = WGLGraphics(_canvas.getContext('webgl2') as RenderingContext2);
}