Example of loading an embedded asset. An embedded asset is an asset included in the program's memory, in contrast to other assets that are normally loaded from disk to memory when needed. The below example embeds the asset at program startup, unlike the common use case of embedding an asset at build time. Embedded an asset at program startup can be useful for things like loading screens, since it might be nice to display some art while other, non-embedded, assets are loading. One common use case for embedded assets is including them directly within the executable during its creation. By embedding an asset at build time rather than runtime the program never needs to go to disk for the asset at all, since it is already located in the program's binary executable.
use ;
use Path;
;