Package | laya.d3.resource |
Class | public class TextureCube |
Inheritance | TextureCube BaseTexture laya.resource.Resource |
Property | Defined By | ||
---|---|---|---|
defaulteTexture : BaseTexture [override] [read-only]
获取纹理资源。
| TextureCube | ||
format : int [read-only]
纹理格式
| BaseTexture | ||
height : int [read-only]
获取高度。
| BaseTexture | ||
magFifter : int
放大过滤器
| BaseTexture | ||
minFifter : int
缩小过滤器
| BaseTexture | ||
mipmap : Boolean
是否使用mipLevel
| BaseTexture | ||
repeat : Boolean
是否使用重复模式纹理寻址
| BaseTexture | ||
size : Size [read-only]
获取尺寸。
| BaseTexture | ||
source : * [read-only]
获取纹理资源。
| BaseTexture | ||
srcs : String [read-only]
文件路径全名。
| TextureCube | ||
width : int [read-only]
获取宽度。
| BaseTexture |
Property | Defined By | ||
---|---|---|---|
_needReleaseAgain : Boolean = false 异步加载完成后是否需要释放(有可能在恢复过程中,再次被释放,用此变量做标记) | TextureCube | ||
_recreateLock : Boolean = false 异步加载锁 | TextureCube |
Method | Defined By | ||
---|---|---|---|
TextureCube | |||
load(url:String):TextureCube [static]
加载TextureCube。
| TextureCube |
Method | Defined By | ||
---|---|---|---|
detoryResource():void [override] | TextureCube | ||
recreateResource():void [override] | TextureCube |
_needReleaseAgain | property |
protected var _needReleaseAgain:Boolean = false
异步加载完成后是否需要释放(有可能在恢复过程中,再次被释放,用此变量做标记)
_recreateLock | property |
protected var _recreateLock:Boolean = false
异步加载锁
defaulteTexture | property |
defaulteTexture:BaseTexture
[read-only] [override] 获取纹理资源。
public function get defaulteTexture():BaseTexture
srcs | property |
srcs:String
[read-only] 文件路径全名。
public function get srcs():String
TextureCube | () | Constructor |
public function TextureCube()
detoryResource | () | method |
override protected function detoryResource():void
load | () | method |
public static function load(url:String):TextureCube
加载TextureCube。
Parameters
url:String — TextureCube地址。
|
TextureCube |
recreateResource | () | method |
override protected function recreateResource():void