Skip to content

ResourceHandler

Rico Schrage edited this page May 9, 2017 · 3 revisions

In gdx-surface every resource will be described via a resource-descriptor. There are two types of resources: Resource and ResourceUnit:

  • A Resource describes always exactly one file.
  • A ResourceUnit describes a part of a resource (for example a texture-region). It's recommended to implement Resource and ResourceUnit as enums. Thats why there is no default implementation of these two interfaces.

For handling, loading and accessing your resources you can just use the ResourceHandler.

Clone this wiki locally