diff options
author | papush! | 2021-01-02 16:59:16 +0100 |
---|---|---|
committer | papush! | 2021-01-02 17:45:08 +0100 |
commit | dafdc38f1631f43d94803b0711657187ab58dedd (patch) | |
tree | 911a8b8336e92d41ecc5cbf979dedee7962dfee7 | |
parent | 934e6b25927e13ad69a63c30b409b024c69d50f4 (diff) |
split resources for faster recompile times
-rw-r--r-- | img/img_resources.qrc | 13 | ||||
-rw-r--r-- | mdl/mdl_resources.qrc | 7 | ||||
-rw-r--r-- | projet.pro | 4 | ||||
-rw-r--r-- | resources.qrc | 21 | ||||
-rw-r--r-- | shaders/shaders_resources.qrc | 9 |
5 files changed, 32 insertions, 22 deletions
diff --git a/img/img_resources.qrc b/img/img_resources.qrc new file mode 100644 index 0000000..1ebd85f --- /dev/null +++ b/img/img_resources.qrc @@ -0,0 +1,13 @@ +<!DOCTYPE RCC> +<RCC version="1.0"> + <qresource prefix="/img"> + <file>dji600.jpg</file> + <file>ground.jpg</file> + <file>clouds1_up.jpg</file> + <file>clouds1_down.jpg</file> + <file>clouds1_north.jpg</file> + <file>clouds1_east.jpg</file> + <file>clouds1_south.jpg</file> + <file>clouds1_west.jpg</file> + </qresource> +</RCC> diff --git a/mdl/mdl_resources.qrc b/mdl/mdl_resources.qrc new file mode 100644 index 0000000..88aba98 --- /dev/null +++ b/mdl/mdl_resources.qrc @@ -0,0 +1,7 @@ +<!DOCTYPE RCC> +<RCC version="1.0"> + <qresource prefix="/mdl"> + <file>dji600.obj</file> + <file>dji600.mtl</file> + </qresource> +</RCC> @@ -4,7 +4,9 @@ TEMPLATE = app DEFINES += QT_DEPRECATED_WARNINGS CONFIG += qt debug -RESOURCES += resources.qrc +RESOURCES += mdl/mdl_resources.qrc +RESOURCES += img/img_resources.qrc +RESOURCES += shaders/shaders_resources.qrc SOURCES += src/main.cc SOURCES += src/main_window.cc diff --git a/resources.qrc b/resources.qrc deleted file mode 100644 index 0e5ff85..0000000 --- a/resources.qrc +++ /dev/null @@ -1,21 +0,0 @@ -<!DOCTYPE RCC> -<RCC version="1.0"> - <qresource> - <file>mdl/dji600.obj</file> - <file>mdl/dji600.mtl</file> - - <file>img/dji600.jpg</file> - <file>img/ground.jpg</file> - <file>img/clouds1_up.jpg</file> - <file>img/clouds1_down.jpg</file> - <file>img/clouds1_north.jpg</file> - <file>img/clouds1_east.jpg</file> - <file>img/clouds1_south.jpg</file> - <file>img/clouds1_west.jpg</file> - - <file>shaders/main.vert</file> - <file>shaders/main.frag</file> - <file>shaders/skybox.vert</file> - <file>shaders/skybox.frag</file> - </qresource> -</RCC> diff --git a/shaders/shaders_resources.qrc b/shaders/shaders_resources.qrc new file mode 100644 index 0000000..1dc5251 --- /dev/null +++ b/shaders/shaders_resources.qrc @@ -0,0 +1,9 @@ +<!DOCTYPE RCC> +<RCC version="1.0"> + <qresource prefix="/shaders"> + <file>main.vert</file> + <file>main.frag</file> + <file>skybox.vert</file> + <file>skybox.frag</file> + </qresource> +</RCC> |