David Catuhe 7 năm trước cách đây
mục cha
commit
e06c7dc4e5
3 tập tin đã thay đổi với 10964 bổ sung10871 xóa
  1. 10945 10871
      dist/preview release/babylon.d.ts
  2. 10 0
      src/Engine/babylon.engine.ts
  3. 9 0
      src/Mesh/babylon.buffer.ts

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 10945 - 10871
dist/preview release/babylon.d.ts


+ 10 - 0
src/Engine/babylon.engine.ts

@@ -501,14 +501,23 @@
             return Engine._TEXTUREFORMAT_LUMINANCE;
         }
 
+        /**
+         * R32F
+         */
         public static get TEXTUREFORMAT_R32F(): number {
             return Engine._TEXTUREFORMAT_R32F;
         }       
         
+        /**
+         * RG32F
+         */
         public static get TEXTUREFORMAT_RG32F(): number {
             return Engine._TEXTUREFORMAT_RG32F;
         }       
         
+        /**
+         * RGB32F
+         */
         public static get TEXTUREFORMAT_RGB32F(): number {
             return Engine._TEXTUREFORMAT_RGB32F;
         }               
@@ -5570,6 +5579,7 @@
             return this._gl.UNSIGNED_BYTE;
         };
 
+        /** @ignore */
         public _getRGBABufferInternalSizedFormat(type: number, format?: number): number {
             if (this._webGLVersion === 1) {
                 return this._gl.RGBA;

+ 9 - 0
src/Mesh/babylon.buffer.ts

@@ -25,6 +25,15 @@
             }
         }
 
+        /**
+         * Create a new {BABYLON.VertexBuffer} based on the current buffer
+         * @param kind defines the vertex buffer kind (position, normal, etc.)
+         * @param offset defines offset in the buffer (0 by default)
+         * @param size defines the size in floats of attributes (position is 3 for instance)
+         * @param stride defines the stride size in floats in the buffer (the offset to apply to reach next value when data is interleaved)
+         * @param instanced defines if the vertex buffer contains indexed data
+         * @returns the new vertex buffer
+         */
         public createVertexBuffer(kind: string, offset: number, size: number, stride?: number, instanced?: boolean): VertexBuffer {
             // a lot of these parameters are ignored as they are overriden by the buffer
             return new VertexBuffer(this._engine, this, kind, this._updatable, true, stride ? stride : this._strideSize, instanced, offset, size);