This PR reworks the internals of the resource manager, primarily changing the way that COLLADA documents are processed. Previously calling load_model() would load COLLADA elements into the resource manager that would later be parsed on the fly when when requesting other resources later (e.g. calling instantiate_model() would walk the structure of a element to construct the mesh within the scene). These changes replace load_model() with the more functional load_all_resources() which loads all resources (meshes, model hierarchies, animations, etc.) from specified document. On of the (very intentional) consequences of this change is that ResourceManager is no longer tied to COLLADA in any way, and is on its way towards being able to support a variety of different resource formats.
This PR reworks the internals of the resource manager, primarily changing the way that COLLADA documents are processed. Previously calling element to construct the mesh within the scene). These changes replace
load_model()
would load COLLADA elements into the resource manager that would later be parsed on the fly when when requesting other resources later (e.g. callinginstantiate_model()
would walk the structure of aload_model()
with the more functionalload_all_resources()
which loads all resources (meshes, model hierarchies, animations, etc.) from specified document. On of the (very intentional) consequences of this change is thatResourceManager
is no longer tied to COLLADA in any way, and is on its way towards being able to support a variety of different resource formats.