m4m.framework.texture
@meta4d/engine / Exports / m4m / framework / texture
Class: texture
language
zh_CN
classdesc
texture资源
version
m4m 1.0
Implements
Table of contents
Methods
Constructors
Properties
Accessors
Methods
caclByteLength
▸ caclByteLength(): number
language
zh_CN
classdesc
计算资源字节大小
version
m4m 1.0
Returns
number
Implementation of
Defined in
framework/asset/resource/texture.ts:106
dispose
▸ dispose(): void
language
zh_CN
classdesc
释放资源
version
m4m 1.0
Returns
void
Implementation of
Defined in
framework/asset/resource/texture.ts:88
getGUID
▸ getGUID(): number
language
zh_CN
classdesc
获取资源唯一id
version
m4m 1.0
Returns
number
Implementation of
Defined in
framework/asset/resource/texture.ts:55
getName
▸ getName(): string
language
zh_CN
classdesc
获取资源名称
version
m4m 1.0
Returns
string
Implementation of
Defined in
framework/asset/resource/texture.ts:43
unuse
▸ unuse(disposeNow?
): void
language
zh_CN
classdesc
引用计数减一
version
m4m 1.0
Parameters
disposeNow
boolean
false
Returns
void
Implementation of
Defined in
framework/asset/resource/texture.ts:77
use
▸ use(): void
language
zh_CN
classdesc
引用计数加一
version
m4m 1.0
Returns
void
Implementation of
Defined in
framework/asset/resource/texture.ts:66
Constructors
constructor
• new texture(assetName?
)
Parameters
assetName
string
null
Defined in
framework/asset/resource/texture.ts:28
Properties
defaultAsset
• defaultAsset: boolean
= false
language
zh_CN
classdesc
是否为默认资源
version
m4m 1.0
Implementation of
Defined in
framework/asset/resource/texture.ts:27
ClassName
▪ Static
Readonly
ClassName: string
= "texture"
Defined in
framework/asset/resource/texture.ts:15
Accessors
realName
• get
realName(): string
language
zh_CN
classdesc
如果是imgdesc加载来的图片,通过这个可以获取到真实的图片名字
version
m4m 1.0
Returns
string
Defined in
framework/asset/resource/texture.ts:122
• set
realName(name
): void
language
zh_CN
classdesc
设置图片名称
version
m4m 1.0
Parameters
name
string
Returns
void
Defined in
Last updated