MCPcopy
hub / github.com/EngoEngine/engo / Load

Method Load

assets.go:13–13  ·  view source on GitHub ↗

Load loads the given resource into memory.

(url string, data io.Reader)

Source from the content-addressed store, hash-verified

11type FileLoader interface {
12 // Load loads the given resource into memory.
13 Load(url string, data io.Reader) error
14
15 // Unload releases the given resource from memory.
16 Unload(url string) error

Callers 15

TestFilesLoadFunction · 0.65
TestFilesMultipleLoadFunction · 0.65
TestFilesLoadNotExistFunction · 0.65
loadMethod · 0.65
LoadReaderDataMethod · 0.65
createAtlasFromXMLFunction · 0.65
TextDimensionsMethod · 0.65
createLevelFromTmxFunction · 0.65
imageTilesMethod · 0.65
PreloadMethod · 0.65
TestAudioLoaderLoadOggFunction · 0.65

Implementers 7

testLoaderassets_test.go
Formatsassets.go
fontLoadercommon/font_filetype.go
tmxLoadercommon/tmx_filetype.go
audioLoadercommon/audio_filetype.go
textureAtlasLoadercommon/texture_atlas.go
imageLoadercommon/render_filetype.go

Calls

no outgoing calls

Tested by 14

TestFilesLoadFunction · 0.52
TestFilesMultipleLoadFunction · 0.52
TestFilesLoadNotExistFunction · 0.52
PreloadMethod · 0.52
TestAudioLoaderLoadOggFunction · 0.52
TestAudioLoaderLoadWavFunction · 0.52
TestAudioLoaderLoadMP3Function · 0.52
TestAudioLoaderUnloadFunction · 0.52
TestAudioPlayerURLFunction · 0.52
TestAudioPlayerCloseFunction · 0.52
TestAudioPlayerPlayFunction · 0.52