WebGLRendererParameters constructor

WebGLRendererParameters({
  1. required double width,
  2. required double height,
  3. required RenderingContext gl,
  4. bool stencil = true,
  5. bool antialias = false,
  6. bool alpha = false,
  7. double clearAlpha = 1.0,
  8. int clearColor = 0x000000,
  9. bool logarithmicDepthBuffer = false,
  10. bool depth = true,
  11. bool premultipliedAlpha = true,
  12. bool preserveDrawingBuffer = false,
  13. PowerPreference powerPreference = PowerPreference.defaultp,
  14. bool failIfMajorPerformanceCaveat = false,
  15. bool reverseDepthBuffer = false,
  16. Precision precision = Precision.highp,
  17. WebXRManager xr(
    1. WebGLRenderer renderer,
    2. 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,
});