From 843d6eb1adf367271ee8b51ed82afc5edc44f3aa Mon Sep 17 00:00:00 2001 From: BennyQBD Date: Sat, 21 Jun 2014 13:51:24 -0400 Subject: [PATCH] Licensed the source code under the Apache License 2.0 --- CMakeLists.txt | 15 +++ LICENSE | 202 ++++++++++++++++++++++++++++ Unix-Build.sh | 14 ++ Unix-Clean.sh | 14 ++ Unix-GenCodeBlocksProject.sh | 14 ++ Unix-GitPull.sh | 14 ++ Unix-GitPush.sh | 14 ++ Windows-Clean.bat | 16 ++- Windows-GenVisualStudioProject.bat | 16 ++- cmake/FindASSIMP.cmake | 15 +++ cmake/FindGLEW.cmake | 15 +++ cmake/FindSDL2.cmake | 15 +++ res/shaders/basicShader.fs | 16 +++ res/shaders/basicShader.vs | 16 +++ res/shaders/common.glh | 16 +++ res/shaders/filter-fxaa.fs | 16 +++ res/shaders/filter-fxaa.glsl | 16 +++ res/shaders/filter-fxaa.vs | 16 +++ res/shaders/filter-gausBlur7x1.fs | 16 +++ res/shaders/filter-gausBlur7x1.glsl | 16 +++ res/shaders/filter-gausBlur7x1.vs | 16 +++ res/shaders/filter-null.fs | 16 +++ res/shaders/filter-null.glsl | 16 +++ res/shaders/filter-null.vs | 16 +++ res/shaders/forward-ambient.fs | 16 +++ res/shaders/forward-ambient.glsl | 16 +++ res/shaders/forward-ambient.vs | 16 +++ res/shaders/forward-directional.fs | 16 +++ res/shaders/forward-directional.vs | 16 +++ res/shaders/forward-point.fs | 16 +++ res/shaders/forward-point.vs | 16 +++ res/shaders/forward-spot.fs | 16 +++ res/shaders/forward-spot.vs | 16 +++ res/shaders/lighting.fsh | 16 +++ res/shaders/lighting.glh | 16 +++ res/shaders/lighting.vsh | 16 +++ res/shaders/lightingMain.fsh | 16 +++ res/shaders/sampling.glh | 15 +++ res/shaders/shadowMapGenerator.fs | 16 +++ res/shaders/shadowMapGenerator.glsl | 16 +++ res/shaders/shadowMapGenerator.vs | 16 +++ src/3DEngine.h | 16 +++ src/camera.cpp | 16 +++ src/camera.h | 16 +++ src/coreEngine.cpp | 16 +++ src/coreEngine.h | 16 +++ src/freeLook.cpp | 16 +++ src/freeLook.h | 16 +++ src/freeMove.cpp | 16 +++ src/freeMove.h | 16 +++ src/game.cpp | 16 +++ src/game.h | 16 +++ src/gameComponent.h | 16 +++ src/gameObject.cpp | 16 +++ src/gameObject.h | 16 +++ src/input.cpp | 16 +++ src/input.h | 16 +++ src/lighting.cpp | 16 +++ src/lighting.h | 16 +++ src/main.cpp | 16 +++ src/mappedValues.cpp | 16 +++ src/mappedValues.h | 16 +++ src/material.cpp | 16 +++ src/material.h | 16 +++ src/math3d.cpp | 16 +++ src/math3d.h | 16 +++ src/mesh.cpp | 16 +++ src/mesh.h | 16 +++ src/meshRenderer.h | 16 +++ src/profiling.cpp | 16 +++ src/profiling.h | 16 +++ src/referenceCounter.h | 16 +++ src/renderingEngine.cpp | 16 +++ src/renderingEngine.h | 16 +++ src/shader.cpp | 16 +++ src/shader.h | 16 +++ src/texture.cpp | 16 +++ src/texture.h | 16 +++ src/timing.cpp | 16 +++ src/timing.h | 16 +++ src/transform.cpp | 16 +++ src/transform.h | 16 +++ src/util.cpp | 16 +++ src/util.h | 16 +++ src/window.cpp | 16 +++ src/window.h | 16 +++ 86 files changed, 1545 insertions(+), 2 deletions(-) create mode 100644 LICENSE diff --git a/CMakeLists.txt b/CMakeLists.txt index f1306fc..ecea0d0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,18 @@ +# Copyright (C) 2014 Barry Deeney +# Copyright (C) 2014 Benny Bobaganoosh +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. + ################ # CMAKE RULES! # ################ diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..d645695 --- /dev/null +++ b/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + 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. diff --git a/Unix-Build.sh b/Unix-Build.sh index 07d4401..44d3dbf 100755 --- a/Unix-Build.sh +++ b/Unix-Build.sh @@ -1,3 +1,17 @@ +# Copyright (C) 2014 Benny Bobaganoosh +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. + BUILT_TARGET="Debug" #First parameter, if any, is used as build target. diff --git a/Unix-Clean.sh b/Unix-Clean.sh index cf6e245..e9e26be 100755 --- a/Unix-Clean.sh +++ b/Unix-Clean.sh @@ -1,2 +1,16 @@ +# Copyright (C) 2014 Benny Bobaganoosh +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. + mv ./build/res/ ./ rm -r ./build/* diff --git a/Unix-GenCodeBlocksProject.sh b/Unix-GenCodeBlocksProject.sh index a609fd5..a2a6167 100755 --- a/Unix-GenCodeBlocksProject.sh +++ b/Unix-GenCodeBlocksProject.sh @@ -1,3 +1,17 @@ +# Copyright (C) 2014 Benny Bobaganoosh +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. + BUILT_TARGET="Debug" #First parameter, if any, is used as build target. diff --git a/Unix-GitPull.sh b/Unix-GitPull.sh index 3edbf75..e0b9372 100755 --- a/Unix-GitPull.sh +++ b/Unix-GitPull.sh @@ -1,3 +1,17 @@ +# Copyright (C) 2014 Benny Bobaganoosh +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. + #Clean up any files that aren't part of the repository #because they will need to be regenerated after a pull. ./Unix-Clean.sh diff --git a/Unix-GitPush.sh b/Unix-GitPush.sh index 3487a96..d7b9a14 100755 --- a/Unix-GitPush.sh +++ b/Unix-GitPush.sh @@ -1,3 +1,17 @@ +# Copyright (C) 2014 Benny Bobaganoosh +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. + #Move the res directory back to it's inital position mv ./build/res/ ./ diff --git a/Windows-Clean.bat b/Windows-Clean.bat index b42cdd1..bf7ffb4 100644 --- a/Windows-Clean.bat +++ b/Windows-Clean.bat @@ -1,3 +1,17 @@ +:: Copyright (C) 2014 Benny Bobaganoosh +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: 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. + move build\res res rmdir build /s /q -mkdir build \ No newline at end of file +mkdir build diff --git a/Windows-GenVisualStudioProject.bat b/Windows-GenVisualStudioProject.bat index c3d286b..ad5c73d 100644 --- a/Windows-GenVisualStudioProject.bat +++ b/Windows-GenVisualStudioProject.bat @@ -1,7 +1,21 @@ +:: Copyright (C) 2014 Benny Bobaganoosh +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: 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. + cd build cmake -G "Visual Studio 11" ../ mkdir Debug mkdir Release copy ..\lib\_bin\ Debug copy ..\lib\_bin\ Release -move ..\res res \ No newline at end of file +move ..\res res diff --git a/cmake/FindASSIMP.cmake b/cmake/FindASSIMP.cmake index b9d6922..20627f9 100644 --- a/cmake/FindASSIMP.cmake +++ b/cmake/FindASSIMP.cmake @@ -1,3 +1,18 @@ +# Copyright (C) 2014 Barry Deeney +# Copyright (C) 2014 Benny Bobaganoosh +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. + ############################################# # Try to find ASSMIP and set the following: # # # diff --git a/cmake/FindGLEW.cmake b/cmake/FindGLEW.cmake index 08a9ab3..d841660 100644 --- a/cmake/FindGLEW.cmake +++ b/cmake/FindGLEW.cmake @@ -1,3 +1,18 @@ +# Copyright (C) 2014 Barry Deeney +# Copyright (C) 2014 Benny Bobaganoosh +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. + ############################################# # Try to find ASSMIP and set the following: # # # diff --git a/cmake/FindSDL2.cmake b/cmake/FindSDL2.cmake index fe4e348..eca793b 100644 --- a/cmake/FindSDL2.cmake +++ b/cmake/FindSDL2.cmake @@ -1,3 +1,18 @@ +# Copyright (C) 2014 Barry Deeney +# Copyright (C) 2014 Benny Bobaganoosh +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. + ############################################# # Try to find ASSMIP and set the following: # # # diff --git a/res/shaders/basicShader.fs b/res/shaders/basicShader.fs index 6f6f097..ecb5695 100644 --- a/res/shaders/basicShader.fs +++ b/res/shaders/basicShader.fs @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #version 120 varying vec2 texCoord0; diff --git a/res/shaders/basicShader.vs b/res/shaders/basicShader.vs index 4019e06..b17ace1 100644 --- a/res/shaders/basicShader.vs +++ b/res/shaders/basicShader.vs @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #version 120 attribute vec3 position; attribute vec2 texCoord; diff --git a/res/shaders/common.glh b/res/shaders/common.glh index ec461dc..2eb45fc 100644 --- a/res/shaders/common.glh +++ b/res/shaders/common.glh @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #if (GLSL_VERSION >= 150) #define DeclareFragOutput(locationNumber, type) out type outputLocation##locationNumber #define SetFragOutput(locationNumber, val) outputLocation##locationNumber = val diff --git a/res/shaders/filter-fxaa.fs b/res/shaders/filter-fxaa.fs index 210d21e..f081eb6 100644 --- a/res/shaders/filter-fxaa.fs +++ b/res/shaders/filter-fxaa.fs @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #version 120 // FXAA shader, GLSL code adapted from: // http://horde3d.org/wiki/index.php5?title=Shading_Technique_-_FXAA diff --git a/res/shaders/filter-fxaa.glsl b/res/shaders/filter-fxaa.glsl index fe7c193..c25dab9 100644 --- a/res/shaders/filter-fxaa.glsl +++ b/res/shaders/filter-fxaa.glsl @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #include "common.glh" // FXAA shader, GLSL code adapted from: // http://horde3d.org/wiki/index.php5?title=Shading_Technique_-_FXAA diff --git a/res/shaders/filter-fxaa.vs b/res/shaders/filter-fxaa.vs index c71019b..825f19a 100644 --- a/res/shaders/filter-fxaa.vs +++ b/res/shaders/filter-fxaa.vs @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #version 120 attribute vec3 position; attribute vec2 texCoord; diff --git a/res/shaders/filter-gausBlur7x1.fs b/res/shaders/filter-gausBlur7x1.fs index ec4d2f5..576a94d 100644 --- a/res/shaders/filter-gausBlur7x1.fs +++ b/res/shaders/filter-gausBlur7x1.fs @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #version 120 varying vec2 texCoord0; diff --git a/res/shaders/filter-gausBlur7x1.glsl b/res/shaders/filter-gausBlur7x1.glsl index b28f883..5b0c7b0 100644 --- a/res/shaders/filter-gausBlur7x1.glsl +++ b/res/shaders/filter-gausBlur7x1.glsl @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #include "common.glh" varying vec2 texCoord0; diff --git a/res/shaders/filter-gausBlur7x1.vs b/res/shaders/filter-gausBlur7x1.vs index c71019b..825f19a 100644 --- a/res/shaders/filter-gausBlur7x1.vs +++ b/res/shaders/filter-gausBlur7x1.vs @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #version 120 attribute vec3 position; attribute vec2 texCoord; diff --git a/res/shaders/filter-null.fs b/res/shaders/filter-null.fs index b8c05d1..0078ab0 100644 --- a/res/shaders/filter-null.fs +++ b/res/shaders/filter-null.fs @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #version 120 varying vec2 texCoord0; diff --git a/res/shaders/filter-null.glsl b/res/shaders/filter-null.glsl index 0f4bd42..ed1af75 100644 --- a/res/shaders/filter-null.glsl +++ b/res/shaders/filter-null.glsl @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #include "common.glh" varying vec2 texCoord0; diff --git a/res/shaders/filter-null.vs b/res/shaders/filter-null.vs index c71019b..825f19a 100644 --- a/res/shaders/filter-null.vs +++ b/res/shaders/filter-null.vs @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #version 120 attribute vec3 position; attribute vec2 texCoord; diff --git a/res/shaders/forward-ambient.fs b/res/shaders/forward-ambient.fs index beab3ed..baa9119 100644 --- a/res/shaders/forward-ambient.fs +++ b/res/shaders/forward-ambient.fs @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #version 120 #include "sampling.glh" diff --git a/res/shaders/forward-ambient.glsl b/res/shaders/forward-ambient.glsl index 85d01d1..60c100c 100644 --- a/res/shaders/forward-ambient.glsl +++ b/res/shaders/forward-ambient.glsl @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #include "common.glh" varying vec2 texCoord0; diff --git a/res/shaders/forward-ambient.vs b/res/shaders/forward-ambient.vs index b081692..c9f5353 100644 --- a/res/shaders/forward-ambient.vs +++ b/res/shaders/forward-ambient.vs @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #version 120 attribute vec3 position; attribute vec2 texCoord; diff --git a/res/shaders/forward-directional.fs b/res/shaders/forward-directional.fs index d2c084d..f0b15d6 100644 --- a/res/shaders/forward-directional.fs +++ b/res/shaders/forward-directional.fs @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #version 120 #include "lighting.fsh" diff --git a/res/shaders/forward-directional.vs b/res/shaders/forward-directional.vs index c89d732..61706a9 100644 --- a/res/shaders/forward-directional.vs +++ b/res/shaders/forward-directional.vs @@ -1,2 +1,18 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #version 120 #include "lighting.vsh" diff --git a/res/shaders/forward-point.fs b/res/shaders/forward-point.fs index 7b64e9d..4426962 100644 --- a/res/shaders/forward-point.fs +++ b/res/shaders/forward-point.fs @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #version 120 #include "lighting.fsh" diff --git a/res/shaders/forward-point.vs b/res/shaders/forward-point.vs index c89d732..61706a9 100644 --- a/res/shaders/forward-point.vs +++ b/res/shaders/forward-point.vs @@ -1,2 +1,18 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #version 120 #include "lighting.vsh" diff --git a/res/shaders/forward-spot.fs b/res/shaders/forward-spot.fs index cfdbdc5..18c115d 100644 --- a/res/shaders/forward-spot.fs +++ b/res/shaders/forward-spot.fs @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #version 120 #include "lighting.fsh" diff --git a/res/shaders/forward-spot.vs b/res/shaders/forward-spot.vs index c89d732..61706a9 100644 --- a/res/shaders/forward-spot.vs +++ b/res/shaders/forward-spot.vs @@ -1,2 +1,18 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #version 120 #include "lighting.vsh" diff --git a/res/shaders/lighting.fsh b/res/shaders/lighting.fsh index c2f6383..2613c38 100644 --- a/res/shaders/lighting.fsh +++ b/res/shaders/lighting.fsh @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + varying vec2 texCoord0; varying vec3 worldPos0; varying vec4 shadowMapCoords0; diff --git a/res/shaders/lighting.glh b/res/shaders/lighting.glh index d1f400a..441e67f 100644 --- a/res/shaders/lighting.glh +++ b/res/shaders/lighting.glh @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + uniform vec3 C_eyePos; uniform float specularIntensity; uniform float specularPower; diff --git a/res/shaders/lighting.vsh b/res/shaders/lighting.vsh index 42646fe..ef132d5 100644 --- a/res/shaders/lighting.vsh +++ b/res/shaders/lighting.vsh @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + attribute vec3 position; attribute vec2 texCoord; attribute vec3 normal; diff --git a/res/shaders/lightingMain.fsh b/res/shaders/lightingMain.fsh index d45d0e8..ab93d07 100644 --- a/res/shaders/lightingMain.fsh +++ b/res/shaders/lightingMain.fsh @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #include "sampling.glh" bool InRange(float val) diff --git a/res/shaders/sampling.glh b/res/shaders/sampling.glh index 1cf967c..4dce368 100644 --- a/res/shaders/sampling.glh +++ b/res/shaders/sampling.glh @@ -1,3 +1,18 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ vec2 CalcParallaxTexCoords(sampler2D dispMap, mat3 tbnMatrix, vec3 directionToEye, vec2 texCoords, float scale, float bias) { diff --git a/res/shaders/shadowMapGenerator.fs b/res/shaders/shadowMapGenerator.fs index ac68149..eba1864 100644 --- a/res/shaders/shadowMapGenerator.fs +++ b/res/shaders/shadowMapGenerator.fs @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #version 120 void main() diff --git a/res/shaders/shadowMapGenerator.glsl b/res/shaders/shadowMapGenerator.glsl index 657676d..45be783 100644 --- a/res/shaders/shadowMapGenerator.glsl +++ b/res/shaders/shadowMapGenerator.glsl @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #include "common.glh" #if defined(VS_BUILD) diff --git a/res/shaders/shadowMapGenerator.vs b/res/shaders/shadowMapGenerator.vs index ba669a0..096ce43 100644 --- a/res/shaders/shadowMapGenerator.vs +++ b/res/shaders/shadowMapGenerator.vs @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #version 120 attribute vec3 position; diff --git a/src/3DEngine.h b/src/3DEngine.h index c783c30..513baea 100644 --- a/src/3DEngine.h +++ b/src/3DEngine.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #ifndef __3DENGINE_H_INCLUDED #define __3DENGINE_H_INCLUDED diff --git a/src/camera.cpp b/src/camera.cpp index fddfa38..32d4e13 100644 --- a/src/camera.cpp +++ b/src/camera.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #include "camera.h" #include "renderingEngine.h" #include "coreEngine.h" diff --git a/src/camera.h b/src/camera.h index 9af9db9..5c9ad84 100644 --- a/src/camera.h +++ b/src/camera.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #ifndef CAMERA_H #define CAMERA_H diff --git a/src/coreEngine.cpp b/src/coreEngine.cpp index 69d4e5e..4485a74 100644 --- a/src/coreEngine.cpp +++ b/src/coreEngine.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #include "coreEngine.h" #include "timing.h" #include "window.h" diff --git a/src/coreEngine.h b/src/coreEngine.h index 48bba09..cf22361 100644 --- a/src/coreEngine.h +++ b/src/coreEngine.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #ifndef COREENGINE_H #define COREENGINE_H diff --git a/src/freeLook.cpp b/src/freeLook.cpp index 817a688..a926d92 100644 --- a/src/freeLook.cpp +++ b/src/freeLook.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #include "freeLook.h" #include "window.h" diff --git a/src/freeLook.h b/src/freeLook.h index f389fce..7d1db27 100644 --- a/src/freeLook.h +++ b/src/freeLook.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #ifndef FREELOOK_H #define FREELOOK_H diff --git a/src/freeMove.cpp b/src/freeMove.cpp index 4f35bab..cb7b7d3 100644 --- a/src/freeMove.cpp +++ b/src/freeMove.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #include "freeMove.h" void FreeMove::ProcessInput(const Input& input, float delta) diff --git a/src/freeMove.h b/src/freeMove.h index a657114..c9f12dd 100644 --- a/src/freeMove.h +++ b/src/freeMove.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #ifndef FREEMOVE_H #define FREEMOVE_H diff --git a/src/game.cpp b/src/game.cpp index f52218b..2439b6d 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #include "game.h" #include "renderingEngine.h" #include diff --git a/src/game.h b/src/game.h index 78c0870..f549916 100644 --- a/src/game.h +++ b/src/game.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #ifndef MYGAME_H #define MYGAME_H diff --git a/src/gameComponent.h b/src/gameComponent.h index 4cf81fa..52d4516 100644 --- a/src/gameComponent.h +++ b/src/gameComponent.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #ifndef GAMECOMPONENT_H_INCLUDED #define GAMECOMPONENT_H_INCLUDED diff --git a/src/gameObject.cpp b/src/gameObject.cpp index a1bb089..13b8d76 100644 --- a/src/gameObject.cpp +++ b/src/gameObject.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #include "gameObject.h" #include "gameComponent.h" #include "coreEngine.h" diff --git a/src/gameObject.h b/src/gameObject.h index 4cf0b97..4cd78b1 100644 --- a/src/gameObject.h +++ b/src/gameObject.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #ifndef GAMEOBJECT_H #define GAMEOBJECT_H diff --git a/src/input.cpp b/src/input.cpp index 84a5e6b..37a6a5c 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #include "input.h" #include "window.h" #include diff --git a/src/input.h b/src/input.h index fe4cb73..2af5824 100644 --- a/src/input.h +++ b/src/input.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #ifndef MYINPUT_H #define MYINPUT_H #include "math3d.h" diff --git a/src/lighting.cpp b/src/lighting.cpp index be484fe..cb57d7e 100644 --- a/src/lighting.cpp +++ b/src/lighting.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #include "lighting.h" #include "renderingEngine.h" #include "coreEngine.h" diff --git a/src/lighting.h b/src/lighting.h index ae39f00..4432c42 100644 --- a/src/lighting.h +++ b/src/lighting.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #ifndef LIGHTING_H #define LIGHTING_H diff --git a/src/main.cpp b/src/main.cpp index 6021633..d354e01 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #include "3DEngine.h" #include "freeLook.h" #include "freeMove.h" diff --git a/src/mappedValues.cpp b/src/mappedValues.cpp index 4f16131..ebe16f7 100644 --- a/src/mappedValues.cpp +++ b/src/mappedValues.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #include "mappedValues.h" const Vector3f& MappedValues::GetVector3f(const std::string& name) const diff --git a/src/mappedValues.h b/src/mappedValues.h index d324496..0ccdf2a 100644 --- a/src/mappedValues.h +++ b/src/mappedValues.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #ifndef MAPPEDVALUES_H_INCLUDED #define MAPPEDVALUES_H_INCLUDED diff --git a/src/material.cpp b/src/material.cpp index c64181f..e200b51 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #include "material.h" #include #include diff --git a/src/material.h b/src/material.h index bbcd0da..5e2c507 100644 --- a/src/material.h +++ b/src/material.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #ifndef MATERIAL_H #define MATERIAL_H diff --git a/src/math3d.cpp b/src/math3d.cpp index 5a5219c..7938f48 100644 --- a/src/math3d.cpp +++ b/src/math3d.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #include "math3d.h" Vector3f Vector3f::Rotate(const Quaternion& rotation) const diff --git a/src/math3d.h b/src/math3d.h index 36772f4..157b8e3 100644 --- a/src/math3d.h +++ b/src/math3d.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #ifndef MATH3D_H_INCLUDED #define MATH3D_H_INCLUDED diff --git a/src/mesh.cpp b/src/mesh.cpp index f8e294f..1e0727b 100644 --- a/src/mesh.cpp +++ b/src/mesh.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #include "mesh.h" #include #include diff --git a/src/mesh.h b/src/mesh.h index 3e74857..8b80394 100644 --- a/src/mesh.h +++ b/src/mesh.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #ifndef MESH_H #define MESH_H diff --git a/src/meshRenderer.h b/src/meshRenderer.h index a16cdf8..1e17b41 100644 --- a/src/meshRenderer.h +++ b/src/meshRenderer.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #ifndef MESHRENDERER_H_INCLUDED #define MESHRENDERER_H_INCLUDED diff --git a/src/profiling.cpp b/src/profiling.cpp index 7817b82..a40cd9d 100644 --- a/src/profiling.cpp +++ b/src/profiling.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #include "profiling.h" #include "timing.h" #include diff --git a/src/profiling.h b/src/profiling.h index 42a2c32..3193fd4 100644 --- a/src/profiling.h +++ b/src/profiling.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #ifndef PROFILING_H_INCLUDED #define PROFILING_H_INCLUDED diff --git a/src/referenceCounter.h b/src/referenceCounter.h index d71135b..4c4a557 100644 --- a/src/referenceCounter.h +++ b/src/referenceCounter.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #ifndef REFERENCECOUNTER_H #define REFERENCECOUNTER_H diff --git a/src/renderingEngine.cpp b/src/renderingEngine.cpp index 535f102..cde196d 100644 --- a/src/renderingEngine.cpp +++ b/src/renderingEngine.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #include "renderingEngine.h" #include "window.h" #include "gameObject.h" diff --git a/src/renderingEngine.h b/src/renderingEngine.h index 46b3962..33c476a 100644 --- a/src/renderingEngine.h +++ b/src/renderingEngine.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #ifndef RENDERINGENGINE_H #define RENDERINGENGINE_H diff --git a/src/shader.cpp b/src/shader.cpp index 3d8d983..0e04b5c 100644 --- a/src/shader.cpp +++ b/src/shader.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #include "shader.h" #include #include diff --git a/src/shader.h b/src/shader.h index 9d17fe4..16b2d59 100644 --- a/src/shader.h +++ b/src/shader.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #ifndef SHADER_H #define SHADER_H diff --git a/src/texture.cpp b/src/texture.cpp index ed0d06e..d850fe4 100644 --- a/src/texture.cpp +++ b/src/texture.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #include "texture.h" #include "stb_image.h" #include "math3d.h" diff --git a/src/texture.h b/src/texture.h index 989924c..2ad4c30 100644 --- a/src/texture.h +++ b/src/texture.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #ifndef TEXTURE_H #define TEXTURE_H diff --git a/src/timing.cpp b/src/timing.cpp index 4922e2a..33a27fb 100644 --- a/src/timing.cpp +++ b/src/timing.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #include "timing.h" #include diff --git a/src/timing.h b/src/timing.h index b2307f5..a0760af 100644 --- a/src/timing.h +++ b/src/timing.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #ifndef TIME_H #define TIME_H diff --git a/src/transform.cpp b/src/transform.cpp index 3048d15..e803577 100644 --- a/src/transform.cpp +++ b/src/transform.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #include "transform.h" bool Transform::HasChanged() diff --git a/src/transform.h b/src/transform.h index 179530a..ba22437 100644 --- a/src/transform.h +++ b/src/transform.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #ifndef TRANSFORM_H #define TRANSFORM_H diff --git a/src/util.cpp b/src/util.cpp index a85aaf1..1b73fba 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #include "util.h" #include diff --git a/src/util.h b/src/util.h index f7f26f4..dce5f48 100644 --- a/src/util.h +++ b/src/util.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #ifndef UTIL_H #define UTIL_H diff --git a/src/window.cpp b/src/window.cpp index 39815ba..4790a2a 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #include "window.h" #include #include diff --git a/src/window.h b/src/window.h index 36177f0..1ecbbcb 100644 --- a/src/window.h +++ b/src/window.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2014 Benny Bobaganoosh + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + #ifndef GAMEWINDOW_H #define GAMEWINDOW_H