WebGLRendererParameters constructor
WebGLRendererParameters({
- required double width,
- required double height,
- required RenderingContext gl,
- bool stencil = true,
- bool antialias = false,
- bool alpha = false,
- double clearAlpha = 1.0,
- int clearColor = 0x000000,
- bool logarithmicDepthBuffer = false,
- bool depth = true,
- bool premultipliedAlpha = true,
- bool preserveDrawingBuffer = false,
- PowerPreference powerPreference = PowerPreference.defaultp,
- bool failIfMajorPerformanceCaveat = false,
- bool reverseDepthBuffer = false,
- Precision precision = Precision.highp,
- WebXRManager xr(
- WebGLRenderer renderer,
- dynamic gl
Implementation
WebGLRendererParameters({
required this.width,
required this.height,
required this.gl,
this.stencil = true,
this.antialias = false,
this.alpha = false,
this.clearAlpha = 1.0,
this.clearColor = 0x000000,
this.logarithmicDepthBuffer = false,
this.depth = true,
this.premultipliedAlpha = true,
this.preserveDrawingBuffer = false,
this.powerPreference = PowerPreference.defaultp,
this.failIfMajorPerformanceCaveat = false,
this.reverseDepthBuffer = false,
this.precision = Precision.highp,
this.xr,
});