Use QUrl for DemonModel and DemonImage sources
This enables the Qt Quick to resolve the location of the file before passing it to the engine to load. This also means changing how we ship the image assets in the material library We also may consider using this for source of shader assets
Showing
- examples/quick3d/simple/main.qml 1 addition, 1 deletionexamples/quick3d/simple/main.qml
- src/imports/materiallib/plugin.pro 45 additions, 1 deletionsrc/imports/materiallib/plugin.pro
- src/imports/materiallib/qtmateriallibrary.qrc 0 additions, 42 deletionssrc/imports/materiallib/qtmateriallibrary.qrc
- src/quick3d/qdemonimage.cpp 4 additions, 3 deletionssrc/quick3d/qdemonimage.cpp
- src/quick3d/qdemonimage.h 6 additions, 5 deletionssrc/quick3d/qdemonimage.h
- src/quick3d/qdemonmodel.cpp 24 additions, 4 deletionssrc/quick3d/qdemonmodel.cpp
- src/quick3d/qdemonmodel.h 7 additions, 5 deletionssrc/quick3d/qdemonmodel.h
Loading
Please register or sign in to comment