AssetManager¶
-
php\gdx\assets\AssetManager
Methods
__construct
($resolver)¶
Параметры:
- $resolver –
callable
- (optional) - function($fileName): FileHandle
get
($fileName)¶
Параметры:
- $fileName –
string
Результат: php\gdx\graphics\Texture, php\gdx\graphics\Pixmap, php\gdx\audio\Music, php\gdx\audio\Sound
loadTexture
($fileName)¶
Параметры:
- $fileName –
string
loadPixmap
($fileName)¶
Параметры:
- $fileName –
string
loadMusic
($fileName)¶
Параметры:
- $fileName –
string
loadSound
($fileName)¶
Параметры:
- $fileName –
string
unload
($fileName)¶
Параметры:
- $fileName –
string
isLoaded
($fileName)¶
Параметры:
- $fileName –
string
containsAsset
($asset)¶
Параметры:
- $asset –
object
,mixed
getAssetFileName
($asset)¶
Параметры:
- $asset –
object
,mixed
disposeDependencies
($fileName)¶
Параметры:
- $fileName –
string
update
($millis)¶
Параметры:
- $millis –
int
- (optional)
finishLoading
()¶
getLoadedAssets
()¶
Результат: int
getQueuedAssets
()¶
Результат: int
getProgress
()¶
Результат: float
dispose
()¶
clear
()¶
getReferenceCount
($fileName)¶
Параметры:
- $fileName –
string
Результат:
int
setReferenceCount
($fileName, $refCount)¶
Параметры:
- $fileName –
string
- $refCount –
int
getDiagnostics
()¶
Результат: string