Package | laya.d3.terrain |
Class | public class TerrainHeightData |
Inheritance | TerrainHeightData laya.resource.Resource |
TerrainHeightData
类用于描述地形高度信息。
Property | Defined By | ||
---|---|---|---|
_bitType : int | TerrainHeightData | ||
_height : int | TerrainHeightData | ||
_terrainHeightData : Float32Array | TerrainHeightData | ||
_value : Number | TerrainHeightData | ||
_width : int | TerrainHeightData |
Method | Defined By | ||
---|---|---|---|
创建一个 TerrainHeightData 实例。
| TerrainHeightData | ||
load(url:String, widht:int, height:int, bitType:int, value:Number):TerrainHeightData [static]
加载地形高度模板,注意:不缓存。
| TerrainHeightData | ||
onAsynLoaded(url:String, data:*, params:Array):void [override]
异步回调
| TerrainHeightData |
_bitType | property |
public var _bitType:int
_height | property |
public var _height:int
_terrainHeightData | property |
public var _terrainHeightData:Float32Array
_value | property |
public var _value:Number
_width | property |
public var _width:int
TerrainHeightData | () | Constructor |
public function TerrainHeightData()
创建一个 TerrainHeightData
实例。
load | () | method |
public static function load(url:String, widht:int, height:int, bitType:int, value:Number):TerrainHeightData
加载地形高度模板,注意:不缓存。
Parameters
url:String — 模板地址。
| |
widht:int — 高度图的宽。
| |
height:int — 高度图的高。
| |
bitType:int | |
value:Number |
TerrainHeightData |
onAsynLoaded | () | method |
override public function onAsynLoaded(url:String, data:*, params:Array):void
异步回调
Parameters
url:String | |
data:* | |
params:Array |