Package | laya.webgl.resource |
Class | public class WebGLImage |
Inheritance | WebGLImage laya.resource.HTMLImage |
Implements | IMergeAtlasBitmap |
Property | Defined By | ||
---|---|---|---|
allowMerageInAtlas : Boolean [read-only]
是否创建私有Source
| WebGLImage | ||
atlasSource : * [read-only] | WebGLImage | ||
enableMerageInAtlas : Boolean [override]
是否创建私有Source
| WebGLImage | ||
format : int [read-only]
获取纹理格式。
| WebGLImage | ||
magFifter : int 放大过滤器 | WebGLImage | ||
minFifter : int 缩小过滤器 | WebGLImage | ||
mipmap : Boolean [read-only]
获取是否具有mipmap。
| WebGLImage | ||
onerror : Function [override] [write-only]
设置onerror函数
| WebGLImage | ||
onload : Function [override] [write-only]
设置onload函数
| WebGLImage | ||
repeat : Boolean 是否使用重复模式纹理寻址 | WebGLImage |
Method | Defined By | ||
---|---|---|---|
WebGLImage(data:String, def:*, format:int, mipmap:Boolean = true) | WebGLImage | ||
clearAtlasSource():void | WebGLImage |
Method | Defined By | ||
---|---|---|---|
_init_(src:String, def:*):void [override] | WebGLImage | ||
detoryResource():void [override] 毁资源 | WebGLImage | ||
onresize():void [override] 整尺寸 | WebGLImage | ||
recreateResource():void [override] 新创建资源,如果异步创建中被强制释放再创建,则需等待释放完成后再重新加载创建。 | WebGLImage |
allowMerageInAtlas | property |
allowMerageInAtlas:Boolean
[read-only] 是否创建私有Source
public function get allowMerageInAtlas():Boolean
atlasSource | property |
atlasSource:*
[read-only] public function get atlasSource():*
enableMerageInAtlas | property |
enableMerageInAtlas:Boolean
[override] 是否创建私有Source
public function get enableMerageInAtlas():Boolean
public function set enableMerageInAtlas(value:Boolean):void
format | property |
format:int
[read-only] 获取纹理格式。
public function get format():int
magFifter | property |
public var magFifter:int
放大过滤器
minFifter | property |
public var minFifter:int
缩小过滤器
mipmap | property |
mipmap:Boolean
[read-only] 获取是否具有mipmap。
public function get mipmap():Boolean
onerror | property |
onerror:Function
[write-only] [override] 设置onerror函数
public function set onerror(value:Function):void
onload | property |
onload:Function
[write-only] [override] 设置onload函数
public function set onload(value:Function):void
repeat | property |
public var repeat:Boolean
是否使用重复模式纹理寻址
WebGLImage | () | Constructor |
public function WebGLImage(data:String, def:*, format:int, mipmap:Boolean = true)
data:String | |
def:* | |
format:int (default = NaN )
| |
mipmap:Boolean (default = true )
|
_init_ | () | method |
override protected function _init_(src:String, def:*):void
Parameters
src:String | |
def:* |
clearAtlasSource | () | method |
public function clearAtlasSource():void
detoryResource | () | method |
override protected function detoryResource():void
毁资源
onresize | () | method |
override protected function onresize():void
整尺寸
recreateResource | () | method |
override protected function recreateResource():void
新创建资源,如果异步创建中被强制释放再创建,则需等待释放完成后再重新加载创建。