[page:BufferAttribute] →

BufferAttribute Types

تتوفر في three.js تسعة أنواع من [page:BufferAttribute]. تتوافق هذه الموجودات مع [link:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#Syntax Typed Arrays] في JavaScript.

THREE.Float64BufferAttribute THREE.Float32BufferAttribute THREE.Float16BufferAttribute THREE.Uint32BufferAttribute THREE.Int32BufferAttribute THREE.Uint16BufferAttribute THREE.Int16BufferAttribute THREE.Uint8ClampedBufferAttribute THREE.Uint8BufferAttribute THREE.Int8BufferAttribute

المنشئ (Constructor)

يتم استدعاء كل من الأعلاف بنفس الطريقة.

TypedBufferAttribute( [param:Array_or_Integer array], [param:Integer itemSize], [param:Boolean normalized] )

array -- يمكن أن يكون هذا مصفوفة مكتوبة أو غير مكتوبة، أو طول الصحيح. سيتم تحويل قيمة المصفوفة إلى النوع المحدد. إذا تم توفير طول، فسيتم إنشاء TypedArray جديد، والذي سيتم تهيئته بجميع العناصر بقيم صفر.

itemSize -- عدد القيم التي يجب أن ترتبط بنقطة فريدة.

normalized -- (اختياري) يشير إلى كيفية تطابق البيانات الأساسية في الذاكرة المؤقتة مع القيم الموجودة في رمز GLSL.

الخصائص (Properties)

انظر صفحة [page:BufferAttribute] للخصائص الموروثة.

الوظائف (Methods)

انظر صفحة [page:BufferAttribute] للأساليب الموروثة.

المصدر (Source)

[link:https://github.com/mrdoob/three.js/blob/master/src/core/BufferAttribute.js src/core/BufferAttribute.js]