randomPoison / gunship-rs

An experimental game engine written in Rust.
MIT License
27 stars 3 forks source link

COLLADA Resource Loading Improvements #50

Closed randomPoison closed 8 years ago

randomPoison commented 8 years ago

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.