From 1a8784b4be35d6fea575daf9700a6cc05519ec94 Mon Sep 17 00:00:00 2001 From: sippeangelo Date: Fri, 20 Nov 2015 16:06:30 +0100 Subject: [PATCH] Added resource folder for lightweight run-time resources that is also relevant to code, eg. shaders and XML schemas --- assets | 2 +- resources/Schema/Components.xsd | 6 +++++ resources/Schema/Components/Test.xml | 6 +++++ resources/Schema/Components/Test.xsd | 21 +++++++++++++++++ resources/Schema/Components/Transform.xml | 5 ++++ resources/Schema/Components/Transform.xsd | 23 +++++++++++++++++++ resources/Schema/Types.xsd | 6 +++++ resources/Schema/Types/Entity.xsd | 28 +++++++++++++++++++++++ resources/Schema/Types/Quaternion.xsd | 9 ++++++++ resources/Schema/Types/Vector.xsd | 9 ++++++++ resources/Shaders/.gitkeep | 0 tools/deploy.bat | 24 ++++++++++++------- 12 files changed, 130 insertions(+), 9 deletions(-) create mode 100644 resources/Schema/Components.xsd create mode 100644 resources/Schema/Components/Test.xml create mode 100644 resources/Schema/Components/Test.xsd create mode 100644 resources/Schema/Components/Transform.xml create mode 100644 resources/Schema/Components/Transform.xsd create mode 100644 resources/Schema/Types.xsd create mode 100644 resources/Schema/Types/Entity.xsd create mode 100644 resources/Schema/Types/Quaternion.xsd create mode 100644 resources/Schema/Types/Vector.xsd create mode 100644 resources/Shaders/.gitkeep diff --git a/assets b/assets index 2aa3725d..6b30aa83 160000 --- a/assets +++ b/assets @@ -1 +1 @@ -Subproject commit 2aa3725df7b2795a77d189307691c5c7355a00d2 +Subproject commit 6b30aa83cfe6bc7df6453e17dbb63da91100b7ec diff --git a/resources/Schema/Components.xsd b/resources/Schema/Components.xsd new file mode 100644 index 00000000..41564706 --- /dev/null +++ b/resources/Schema/Components.xsd @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/resources/Schema/Components/Test.xml b/resources/Schema/Components/Test.xml new file mode 100644 index 00000000..ccf459fe --- /dev/null +++ b/resources/Schema/Components/Test.xml @@ -0,0 +1,6 @@ + + 1 + 1.333 + + + \ No newline at end of file diff --git a/resources/Schema/Components/Test.xsd b/resources/Schema/Components/Test.xsd new file mode 100644 index 00000000..edd75790 --- /dev/null +++ b/resources/Schema/Components/Test.xsd @@ -0,0 +1,21 @@ + + + + + + + + + 8 + + + + + + + + + + + + \ No newline at end of file diff --git a/resources/Schema/Components/Transform.xml b/resources/Schema/Components/Transform.xml new file mode 100644 index 00000000..e093c41a --- /dev/null +++ b/resources/Schema/Components/Transform.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/resources/Schema/Components/Transform.xsd b/resources/Schema/Components/Transform.xsd new file mode 100644 index 00000000..aadac90a --- /dev/null +++ b/resources/Schema/Components/Transform.xsd @@ -0,0 +1,23 @@ + + + + + + + + It's a transform thingy! + + 8 + + + + + + The position vector + + + + + + + \ No newline at end of file diff --git a/resources/Schema/Types.xsd b/resources/Schema/Types.xsd new file mode 100644 index 00000000..0627f435 --- /dev/null +++ b/resources/Schema/Types.xsd @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/resources/Schema/Types/Entity.xsd b/resources/Schema/Types/Entity.xsd new file mode 100644 index 00000000..f02cbdb8 --- /dev/null +++ b/resources/Schema/Types/Entity.xsd @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/resources/Schema/Types/Quaternion.xsd b/resources/Schema/Types/Quaternion.xsd new file mode 100644 index 00000000..5ea8d92d --- /dev/null +++ b/resources/Schema/Types/Quaternion.xsd @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/resources/Schema/Types/Vector.xsd b/resources/Schema/Types/Vector.xsd new file mode 100644 index 00000000..eac523fb --- /dev/null +++ b/resources/Schema/Types/Vector.xsd @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/resources/Shaders/.gitkeep b/resources/Shaders/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/tools/deploy.bat b/tools/deploy.bat index 2715ad1d..b3f51c07 100755 --- a/tools/deploy.bat +++ b/tools/deploy.bat @@ -2,26 +2,34 @@ SET DeployLocation=bin\ -ECHO Deploying resources to %DeployLocation% +ECHO Deploying assets to %DeployLocation% :: Asset folders RMDIR "%DeployLocation%\Models" -RMDIR "%DeployLocation%\Textures" -RMDIR "%DeployLocation%\Sounds" MKLINK "%DeployLocation%\Models\" "assets\Models" /J +RMDIR "%DeployLocation%\Textures" MKLINK "%DeployLocation%\Textures\" "assets\Textures\" /J -MKLINK "%DeployLocation%\Sounds\" "assets\Sounds\" /J -:: Configuration files -MKLINK "%DeployLocation%\DefaultConfig.ini" "assets\DefaultConfig.ini" /H +RMDIR "%DeployLocation%\Audio" +MKLINK "%DeployLocation%\Audio\" "assets\Audio\" /J + +ECHO Deploying resources to %DeployLocation% +:: Schemas +RMDIR "%DeployLocation%\Schema" +MKLINK "%DeployLocation%\Schema\" "resources\Schema" /J :: Shaders RMDIR /S /Q "%DeployLocation%\Shaders" MKDIR "%DeployLocation%\Shaders" -MKLINK "%DeployLocation%\Shaders\OpenGL\" "src\game\Rendering\OpenGL\Shaders\" /J -MKLINK "%DeployLocation%\Shaders\DirectX\" "src\game\Rendering\DirectX\Shaders\" /J +MKLINK "%DeployLocation%\Shaders\" "resources\Shaders" /J +MKLINK "%DeployLocation%\Shaders\" "resources\Shaders" /J +:: Configuration files +MKLINK "%DeployLocation%\DefaultConfig.ini" "resources\DefaultConfig.ini" /H + :: Platform specific binaries IF "%~1"=="" GOTO :EOF ECHO Deploying %1 binaries to %DeployLocation% COPY "deps\bin\%1\x64\*.dll" "%DeployLocation%" + :: Licenses +::ECHO Copying licenses %DeployLocation% ::COPY "libs\assimp-3.1.1\LICENSE" "%ConfigPath%\Assimp License.txt" ::COPY "libs\glew-1.11.0\LICENSE.txt" "%ConfigPath%\GLEW License.txt" ::COPY "libs\glm-0.9.5.4\copying.txt" "%ConfigPath%\GLM License.txt"