瀏覽代碼

[Documentation] Clarified engine constructor parameters FIXED

Jean-Philippe Côté 7 年之前
父節點
當前提交
ba9d25ca57
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/Engine/babylon.engine.ts

+ 3 - 3
src/Engine/babylon.engine.ts

@@ -819,11 +819,11 @@
         /**
          * @constructor
          * @param {HTMLCanvasElement | WebGLRenderingContext} canvasOrContext - the canvas or WebGL context to use for rendering
-         * @param {boolean} [antialias] - enable antialiasing
+         * @param {boolean} [antialias] - enable antialiasing (default: false)
          * @param {EngineOptions} [options] - further options to be sent to the getContext() function
-         * @param {boolean} [adaptToDeviceRatio] - whether to adapt to the device's viewport characteristics
+         * @param {boolean} [adaptToDeviceRatio] - whether to adapt to the device's viewport characteristics (default: false)
          */
-        constructor(canvasOrContext: Nullable<HTMLCanvasElement | WebGLRenderingContext>, antialias?: boolean, options?: EngineOptions, adaptToDeviceRatio?:boolean = false) {
+        constructor(canvasOrContext: Nullable<HTMLCanvasElement | WebGLRenderingContext>, antialias?: boolean, options?: EngineOptions, adaptToDeviceRatio:boolean = false) {
             let canvas: Nullable<HTMLCanvasElement> = null;
             Engine.Instances.push(this);