Texture

Texture

Texture 纹理对象
基类: TextureRoot

Members

Methods

constructor(earthViewer,urlOrImageSource,options)

创建用于显示或者计算的纹理
Name Type Description
earthViewer EarthViewer
urlOrImageSource string | TexImageSource 图片url或者Cavas,ImageBitmap等其他图片数据源
options ITextureCreateOptions optional创建参数

isReady() → boolean

是否就绪

staticCreateFromBabylon(earthViewer,babylonTexture) → Texture

从Babylon的BaseTexture对象创建,包括Texture,RawTexture等类型。可以用于配置Drawsee的Material进行显示
Name Type Description
earthViewer EarthViewer
babylonTexture BABYLON.BaseTexture Babylon纹理对象