OpenGLWeb constructor
Implementation
OpenGLWeb(Map<String, dynamic> options) : super(options) {
this._alpha = options["alpha"] ?? false;
this._antialias = options["antialias"] ?? false;
this.width = options["width"];
this.height = options["height"];
this.divId = options["divId"];
this.dpr = options["dpr"];
final CanvasElement domElement = CanvasElement(
width: (width * dpr).toInt(), height: (height * dpr).toInt())
..id = 'canvas-id';
this.element = domElement;
ui.platformViewRegistry.registerViewFactory(divId, (int viewId) {
return domElement;
});
}