Cocos Creator
Manual
API Ref
Cocos2d-x
Manual
API Ref
Version: 3.1
Version: 3.5
Version: 3.4
Version: 3.3
Version: 3.2
Version: 3.0
Version: 2.4
Version: 2.3
Version: 2.2
Version: 2.1
Version: 2.0
Version: 1.10
Version: 1.9
Search
Preparing search index...
The search index is not available
CocosCreatorAPI
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
terrain
TerrainBuffer
Class TerrainBuffer
Hierarchy
TerrainBuffer
Index
Properties
_buff
View
_seek
Pos
buffer
length
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
Private
_buff
View
_buff
View
:
DataView
= new DataView(this.buffer.buffer)
Private
_seek
Pos
_seek
Pos
:
number
= 0
buffer
buffer
:
Uint8Array
= new Uint8Array(2048)
length
length
:
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
Lightmap
Info
Terrain
Buffer
_buff
View
_seek
Pos
buffer
length
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_
BLOCK_
TILE_
COMPLEXITY
TERRAIN_
BLOCK_
VERTEX_
COMPLEXITY
TERRAIN_
BLOCK_
VERTEX_
SIZE
TERRAIN_
DATA_
VERSION
TERRAIN_
DATA_
VERSION2
TERRAIN_
DATA_
VERSION3
TERRAIN_
DATA_
VERSION4
TERRAIN_
DATA_
VERSION_
DEFAULT
TERRAIN_
EAST_
INDEX
TERRAIN_
HEIGHT_
BASE
TERRAIN_
HEIGHT_
FACTORY
TERRAIN_
HEIGHT_
FMAX
TERRAIN_
HEIGHT_
FMIN
TERRAIN_
MAX_
BLEND_
LAYERS
TERRAIN_
MAX_
LAYER_
COUNT
TERRAIN_
MAX_
LEVELS
TERRAIN_
NORTH_
INDEX
TERRAIN_
SOUTH_
INDEX
TERRAIN_
WEST_
INDEX
bb
Max
bb
Min
Generated using
TypeDoc