Gary Hsu 7 лет назад
Родитель
Сommit
a02d692c88
1 измененных файлов с 9 добавлено и 0 удалено
  1. 9 0
      src/Mesh/babylon.buffer.ts

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

@@ -72,6 +72,15 @@
             return this._buffer;
         }
 
+        /**
+         * Gets the stride in float32 units (i.e. byte stride / 4).
+         * May not be an integer if the byte stride is not divisible by 4.
+         * DEPRECATED. Use byteStride instead.
+         */
+        public getStrideSize(): number {
+            return this.byteStride / 4;
+        }
+
         // Methods
         public create(data: Nullable<DataArray> = null): void {
             if (!data && this._buffer) {