Cocos Creator
手册文档
API 参考
Cocos Creator 3D
手册文档
API 参考
Cocos2d-x
手册文档
API 参考
AnySDK
Version: 1.0
Version: 1.1
Version: 1.2
Search
Preparing search index...
The search index is not available
Creator3dAPI
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
terrain
TerrainBuffer
Class TerrainBuffer
Hierarchy
TerrainBuffer
Index
Properties
Buffer
Length
_dview
_seek
Pos
Methods
Assign
Read
Float
Read
Float
Array
Read
Int
Read
Int16
Read
Int8
Read
Int
Array
Read
String
Reserve
Write
Float
Write
Float
Array
Write
Int16
Write
Int32
Write
Int8
Write
Int
Array
Write
String
Properties
Buffer
Buffer
:
Uint8Array
= new Uint8Array(2048)
Length
Length
:
number
= 0
Private
_dview
_dview
:
DataView
= new DataView(this.Buffer.buffer)
Private
_seek
Pos
_seek
Pos
:
number
= 0
Methods
Assign
Assign
(
buff
:
Uint8Array
)
:
void
Parameters
buff:
Uint8Array
Returns
void
Read
Float
Read
Float
(
)
:
number
Returns
number
Read
Float
Array
Read
Float
Array
(
value
:
number
[]
)
:
number
[]
Parameters
value:
number
[]
Returns
number
[]
Read
Int
Read
Int
(
)
:
number
Returns
number
Read
Int16
Read
Int16
(
)
:
number
Returns
number
Read
Int8
Read
Int8
(
)
:
number
Returns
number
Read
Int
Array
Read
Int
Array
(
value
:
number
[]
)
:
number
[]
Parameters
value:
number
[]
Returns
number
[]
Read
String
Read
String
(
)
:
string
Returns
string
Reserve
Reserve
(
size
:
number
)
:
void
Parameters
size:
number
Returns
void
Write
Float
Write
Float
(
value
:
number
)
:
void
Parameters
value:
number
Returns
void
Write
Float
Array
Write
Float
Array
(
value
:
number
[]
)
:
void
Parameters
value:
number
[]
Returns
void
Write
Int16
Write
Int16
(
value
:
number
)
:
void
Parameters
value:
number
Returns
void
Write
Int32
Write
Int32
(
value
:
number
)
:
void
Parameters
value:
number
Returns
void
Write
Int8
Write
Int8
(
value
:
number
)
:
void
Parameters
value:
number
Returns
void
Write
Int
Array
Write
Int
Array
(
value
:
number
[]
)
:
void
Parameters
value:
number
[]
Returns
void
Write
String
Write
String
(
value
:
string
)
:
void
Parameters
value:
string
Returns
void
Globals
terrain
Height
Field
Terrain
Terrain
Asset
Terrain
Block
Terrain
Block
Info
Terrain
Buffer
Buffer
Length
_dview
_seek
Pos
Assign
Read
Float
Read
Float
Array
Read
Int
Read
Int16
Read
Int8
Read
Int
Array
Read
String
Reserve
Write
Float
Write
Float
Array
Write
Int16
Write
Int32
Write
Int8
Write
Int
Array
Write
String
Terrain
Info
Terrain
Layer
Terrain
Layer
Info
Terrain
Renderable
Terrain
Vertex
TERRAIN_
BLOCK_
TILE_
COMPLEXITY
TERRAIN_
BLOCK_
VERTEX_
COMPLEXITY
TERRAIN_
BLOCK_
VERTEX_
SIZE
TERRAIN_
DATA_
VERSION
TERRAIN_
DATA_
VERSION2
TERRAIN_
DATA_
VERSION3
TERRAIN_
DATA_
VERSION_
DEFAULT
TERRAIN_
EAST_
INDEX
TERRAIN_
HEIGHT_
BASE
TERRAIN_
HEIGHT_
FACTORY
TERRAIN_
MAX_
BLEND_
LAYERS
TERRAIN_
MAX_
LAYER_
COUNT
TERRAIN_
MAX_
LEVELS
TERRAIN_
NORTH_
INDEX
TERRAIN_
SOUTH_
INDEX
TERRAIN_
WEST_
INDEX
Generated using
TypeDoc