Compare commits

..

3 Commits

Author SHA1 Message Date
Shaun Reed e216217b7e Work on Texture class 2022-07-31 19:01:40 -04:00
Shaun Reed 26c43a877c Refactor 2022-07-31 19:00:45 -04:00
Shaun Reed d3c11d4645 Add ResourceManager for assets outside of QRC
+ Use qt6_add_big_resources to improve build time
+ RM::getPath(sting) to build absolute path to assets
+ Allows easy access to models or other large assets not loaded into QRC
2022-07-31 18:50:02 -04:00
1 changed files with 1 additions and 4 deletions

View File

@ -197,10 +197,7 @@ void Model::flipTexture(const std::string & fileName, bool flipX, bool flipY)
* Models should not be loaded into Qt resource system
* Instead pass an *absolute* path to this function
* Relative paths will break if Qtk is executed from different locations
*
* Models can also be loaded from the `qtk/resource` directory using qrc format
* loadModel(":/models/backpack/backpack.obj")
* See resourcemanager.h for more information
* See resourcemanager.h for an example of how qtk handles this
*
* @param path Absolute path to a model .obj or other format accepted by assimp
*/