resources
For built-in resources. The textures from Resources.loadTexture will be available immediately.
In a JVM context, the images are loaded using ClassLoader.getResource
, using klass's classloader or the system classloader when klass is null.
In a JS context, the images are expected to be found within the web page, using simple img' tags, whose
idis the combination of [path] and the [Resources.loadTexture]'s
name` parameter. klass is ignored.
Note, no caching is performed, therefore loading the same image twice will load and create two independent textures (a waste of time and memory).