Packagelaya.d3.graphics
Classpublic class IndexBuffer3D
InheritanceIndexBuffer3D Inheritance Buffer Inheritance laya.resource.Resource

IndexBuffer3D 类用于创建索引缓冲。



Public Properties
 PropertyDefined By
 Inherited_bindActive : Object
[static]
Buffer
 Inherited_bindVertexBuffer : *
[static]
Buffer
 InheritedbufferUsage : int
[read-only]
Buffer
 Inherited_byteLength : int = 0
Buffer
  canRead : Boolean
[read-only] 获取是否可读。
IndexBuffer3D
  create : Function
[static] 创建IndexBuffer3D。
IndexBuffer3D
 Inherited_enableAtributes : Array
[static]
Buffer
  indexCount : int
[read-only] 获取索引个数。
IndexBuffer3D
  indexType : String
[read-only] 获取索引类型。
IndexBuffer3D
  indexTypeByteCount : int
[read-only] 获取索引类型字节数量。
IndexBuffer3D
Protected Properties
 PropertyDefined By
 Inherited_buffer : *
Buffer
 Inherited_bufferType : int
Buffer
 Inherited_bufferUsage : int
Buffer
 Inherited_gl : WebGLContext
[static]
Buffer
 Inherited_glBuffer : *
Buffer
Public Methods
 MethodDefined By
  
IndexBuffer3D(indexType:String, indexCount:int, bufferUsage:int, canRead:Boolean = false)
创建一个 IndexBuffer3D,不建议开发者使用并用IndexBuffer3D.create()代替 实例。
IndexBuffer3D
 Inherited
_bind():void
Buffer
  
getData():Uint16Array
获取索引数据。
IndexBuffer3D
  
setData(data:*, bufferOffset:int = 0, dataStartIndex:int = 0, dataCount:Number = 4294967295):void
设置数据。
IndexBuffer3D
Protected Methods
 MethodDefined By
  
[override]
IndexBuffer3D
 Inherited
[override]
Buffer
Public Constants
 ConstantDefined By
  INDEXTYPE_UBYTE : String = ubyte
[static] 8位ubyte无符号索引类型。
IndexBuffer3D
  INDEXTYPE_USHORT : String = ushort
[static] 16位ushort无符号索引类型。
IndexBuffer3D
Property Detail
canReadproperty
canRead:Boolean  [read-only]

获取是否可读。


Implementation
    public function get canRead():Boolean
createproperty 
public static var create:Function

创建IndexBuffer3D。

indexCountproperty 
indexCount:int  [read-only]

获取索引个数。


Implementation
    public function get indexCount():int
indexTypeproperty 
indexType:String  [read-only]

获取索引类型。


Implementation
    public function get indexType():String
indexTypeByteCountproperty 
indexTypeByteCount:int  [read-only]

获取索引类型字节数量。


Implementation
    public function get indexTypeByteCount():int
Constructor Detail
IndexBuffer3D()Constructor
public function IndexBuffer3D(indexType:String, indexCount:int, bufferUsage:int, canRead:Boolean = false)

创建一个 IndexBuffer3D,不建议开发者使用并用IndexBuffer3D.create()代替 实例。

Parameters
indexType:String — 索引类型。
 
indexCount:int — 索引个数。
 
bufferUsage:int (default = NaN) — IndexBuffer3D用途类型。
 
canRead:Boolean (default = false) — 是否可读。
Method Detail
detoryResource()method
override protected function detoryResource():void

getData()method 
public function getData():Uint16Array

获取索引数据。

Returns
Uint16Array — 索引数据。
setData()method 
public function setData(data:*, bufferOffset:int = 0, dataStartIndex:int = 0, dataCount:Number = 4294967295):void

设置数据。

Parameters

data:* — 索引数据。
 
bufferOffset:int (default = 0) — 索引缓冲中的偏移。
 
dataStartIndex:int (default = 0) — 索引数据的偏移。
 
dataCount:Number (default = 4294967295) — 索引数据的数量。

Constant Detail
INDEXTYPE_UBYTEConstant
public static const INDEXTYPE_UBYTE:String = ubyte

8位ubyte无符号索引类型。

INDEXTYPE_USHORTConstant 
public static const INDEXTYPE_USHORT:String = ushort

16位ushort无符号索引类型。