Skip to content

Commit

Permalink
moved to stack build, events added, bugs in Colour and Light fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
uotbw committed Sep 14, 2015
1 parent 85d63fc commit 2df03a4
Show file tree
Hide file tree
Showing 124 changed files with 2,307 additions and 921 deletions.
9 changes: 2 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,13 @@ services:
- docker

before_install:
- chmod +x Scripts/*.sh
- chmod +x Scripts/building/*.sh
- docker pull uotbw/urho3d-build:debian-latest
# - docker pull uotbw/urho3d-build:ubuntu-latest
# - docker pull uotbw/urho3d-build:fedora-latest


language: c

script:
- docker run -v /home/travis/build/urs-of-the-backwoods/HGamer3D/Scripts:/opt/scripts uotbw/urho3d-build:debian-latest bash -c "/opt/scripts/installHaskell.sh && /opt/scripts/getHGamer3D.sh && /opt/scripts/buildHGamer3D.sh"
# - docker run -v /home/travis/build/urs-of-the-backwoods/HGamer3D/Scripts:/opt/scripts uotbw/urho3d-build:ubuntu-latest bash -c "/opt/scripts/installHaskell.sh && /opt/scripts/getHGamer3D.sh && /opt/scripts/buildHGamer3D.sh"
# - docker run -v /home/travis/build/urs-of-the-backwoods/HGamer3D/Scripts:/opt/scripts uotbw/urho3d-build:fedora-latest bash -c "/opt/scripts/installHaskell.sh && /opt/scripts/getHGamer3D.sh && /opt/scripts/buildHGamer3D.sh"
- docker run -v /home/travis/build/urs-of-the-backwoods/HGamer3D:/opt/hg3d uotbw/urho3d-build:debian-latest bash -c "/opt/hg3d/Scripts/building/installHaskell.sh && /opt/hg3d/Scripts/building/buildHGamer3D.sh"



202 changes: 198 additions & 4 deletions LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,207 @@ HGamer3D (http://www.hgamer3d.org)

HGamer3D is licensed under the Apache License, Version 2.0 (the "License"); you may not use this software except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0
http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

You can obtain the latest version of the source code under http://www.github.com/urs-of-the-backwoods/HGamer3D.


Urho3D license
--------------

Copyright (c) 2008-2015 the Urho3D project.

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.


The FreeType Project disclaimer
-------------------------------

Portions of this software are copyright © 2010 The FreeType Project
(www.freetype.org). All rights reserved.


GLEW license
------------

The OpenGL Extension Wrangler Library
Copyright (C) 2002-2007, Milan Ikits <milan ikits[]ieee org>
Copyright (C) 2002-2007, Marcelo E. Magallon <mmagallo[]debian org>
Copyright (C) 2002, Lev Povalahev
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* The name of the author may be used to endorse or promote products
derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.


Mesa 3-D graphics library
Version: 7.0

Copyright (C) 1999-2007 Brian Paul All Rights Reserved.

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


Copyright (c) 2007 The Khronos Group Inc.

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the following conditions:

Source Code
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Materials.

THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.

LZ4 license
-----------
You can obtain the latest version of the source code under http://www.github.com/urs-of-the-backwoods/HGamer3D

LZ4 - Fast LZ compression algorithm
Header File
Copyright (C) 2011-2013, Yann Collet.
BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

You can contact the author at :
- LZ4 homepage : http://fastcompression.blogspot.com/p/lz4.html
- LZ4 source repository : http://code.google.com/p/lz4/


MojoShader license
------------------

Copyright (c) 2008-2011 Ryan C. Gordon.

This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from
the use of this software.

Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:

1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software in a
product, an acknowledgment in the product documentation would be
appreciated but is not required.

2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.

3. This notice may not be removed or altered from any source distribution.

Ryan C. Gordon <icculus@icculus.org>


SDL license
-----------

Simple DirectMedia Layer
Copyright (C) 1997-2012 Sam Lantinga <slouken@libsdl.org>

This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.

Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:

1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.






9 changes: 9 additions & 0 deletions Scripts/admin/build_dist.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
REM windows batch file, to build distribution of runtime
REM usage "build_dist.bat <version> <target-folder>"

REM create directories
mkdir %2\HGamer3D-Windows-%1

REM copy files
call copy_runtime.bat %2\HGamer3D-Windows-%1
call copy_build_output.bat %2\HGamer3D-Windows-%1
4 changes: 4 additions & 0 deletions Scripts/admin/copy_build_output.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
REM windows batch file, to copy build output to a distribution folder
REM usage "copy_build_output.bat <target-folder>"

xcopy /Y /S ..\Build\Output\* %1
7 changes: 7 additions & 0 deletions Scripts/admin/copy_runtime.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
REM windows batch file, to copy runtime to a distribution folder
REM usage "copy_runtime.bat <target-folder>"

xcopy /Y /S Data\* %1
xcopy /Y README_RUNTIME.txt %1
xcopy /Y ..\LICENSE.txt %1
xcopy /Y /S ..\..\Runtime-Binaries\* %1
11 changes: 11 additions & 0 deletions Scripts/admin/install.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
REM windows batch file, to install distribution of runtime in APPFOLDER
REM usage "install.bat"
REM create directories
mkdir %APPDATA%\HGamer3D

REM copy files
call copy_runtime.bat %APPDATA%\HGamer3D
call copy_build_output.bat %APPDATA%\HGamer3D

REM install haskell files
cabal install --extra-lib-dirs=%APPDATA%\HGamer3D ..\Build\Output\HGamer3D-0.6.0.tar.gz
11 changes: 11 additions & 0 deletions Scripts/admin/install_update.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
REM windows batch file, to install an update (dll and Haskell package) in APPFOLDER
REM usage "install_update.bat"

REM create directories
mkdir %APPDATA%\HGamer3D

REM copy only build output, runtime should be there
call copy_build_output.bat %APPDATA%\HGamer3D

REM install haskell files
cabal install --extra-lib-dirs=%APPDATA%\HGamer3D ..\Build\Output\HGamer3D-0.6.0.tar.gz
57 changes: 57 additions & 0 deletions Scripts/admin/random.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@



fc0edefcebcb5878
16877957e32da6b1 68a1857c27690b30
8c79de2199331f3a d2425f880fcdd9a4
200de0e837a8e590 60636b107c77a533
da9601eaf3319280 7aacf4ee5bd2f958
afcef7aa41d88c0d 659d20e6e65f85fe
35f7752020f7f1cd 824517eb48d5c653
badd24df00e737d8 112cc0dc2647d39e
8a4376986a589bd3 1d813af21d95b77b
77834a16c475d96f def9d856332b402a
d5b79f5837e52274 65114ba821671643
e5ea0d693a04ff71 1cdc5b0a65479346

829863cdd141007e 457ac00afe66a3a4
39b4f64b33f5cb41 620bb5dd7dfca052
f98939ae4b0d693a 1c94738af20a0ac6
5009dcc85ea5f959 7534a286d000125c
bd86f89ddca9280f 07995a794e698f4b
8a73da7bdfbe4ccc 07669c3c292bf265
7e6f5eb9ae275c30 239d21291230fb3a
5bd46a46b4ae5d38 7a409f478c6a34f5
a5d6c1c359e6d8ce e4757484f00e80ed
f11d74469462d8ed b28a202495ec05b1
e010f1bdee3d43a9 8224c8738a7811f4
3049202a50c414a7 372110c1ae4548b8
916f39acd0fc989e 1dc09dda4414c458
cb15d6bcd044e980 dcccbe00bf2f3353
af04fe855da6a1f7 71f83affafe7f234
3a3e04f1e96a3b66 f30e5999d8163cdf
946b5d11fe9cd0b1 50cf3e627074b54b
bdc7f06e5e02c1c3 2cd728db4c2259b0
4bb9cce9a2a235d8 5fb18d74b1004fe1
a2b3031a7192310f 69a74424be3ec33f

c79af5aba673d16f ef36cfb786a68a11
0dfb84657424c0ca 6a1bc0db59d61c0b
b1f9cefec502bc00 a2852cbe5f2c4987
8dafa8ac4b0cfeba 26779b30e83af241
59cd6c460b380826 ae23ce04e0a2753f
6bf69567effdadc4 72f5737a69ac48a9
1f3a0cd449d9dca8 b21dd75924d24039
d84c6da838cf9222 6900317f7344a255
ba59b036d24ee43a 0a48a45d29f03db0
ed013afe164b7e7a e004bc42912bd969
0fc4c451782c9314 ad80108340498a7d
b04055b085dada57 67379142783380b0
f96c93fa5ea670e6 7a2c5ce0cde8b84e
00e84024e37b69ce 6fe8b81ee8933f1d
e5d2e26673076f9a 4b3faa74fda4facd
73bbc286723374d2 403489f57b63f21b
601f0e13a9ee72db d620b372b9f9e840
93bc32e76b151940 5fc0459058886bfa
835e9a455a963b33 b478347831a6dee7
f5f3e0f54a5cde90 0a7dcb8c01e6d693
24 changes: 0 additions & 24 deletions Scripts/buildHGamer3D.sh

This file was deleted.

17 changes: 17 additions & 0 deletions Scripts/building/buildHGamer3D.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
# build hgamer3d in linux
# to be used as root
# assumption, current path is in HGamer3D

set -x
set -e

cd ..
mkdir BuildHG3D
cd BuildHG3D

export LANG=C.UTF-8 # needed for docker files
stack build c2hs --resolver lts-3.4
cmake /opt/hg3d/Source
cmake --build . --config Release --target samples

File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions Scripts/building/getHGamer3D.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
# get hgamer3d in linux
# to be used as root

set -x
set -e

stack exec -- git clone https://github.com/urs-of-the-backwoods/HGamer3D
cd HGamer3D

0 comments on commit 2df03a4

Please sign in to comment.