Compare commits

..

3 Commits

Author SHA1 Message Date
Shaun Reed ebb597dae6 Work on Texture class 2022-07-31 19:22:49 -04:00
Shaun Reed ab60994203 Refactor 2022-07-31 19:22:49 -04:00
Shaun Reed c15d064dce 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 19:13:54 -04:00
1 changed files with 4 additions and 1 deletions

View File

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