Browse Source

added license note to source files

master
Martin Estgren 2 years ago
parent
commit
7e55db74e1

+ 21
- 0
projects/app/include/Chunk.h View File

@@ -1,3 +1,24 @@
1
+/* Copyright (c) 2018 Martin Estgren
2
+
3
+Permission is hereby granted, free of charge, to any person obtaining a copy
4
+of this software and associated documentation files (the "Software"), to deal
5
+in the Software without restriction, including without limitation the rights
6
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+copies of the Software, and to permit persons to whom the Software is
8
+furnished to do so, subject to the following conditions:
9
+
10
+The above copyright notice and this permission notice shall be included in all
11
+copies or substantial portions of the Software.
12
+
13
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+SOFTWARE.
20
+*/
21
+
1 22
 #ifndef CHUNK_H
2 23
 #define CHUNK_H
3 24
 #include <iostream>

+ 21
- 0
projects/app/include/ChunkManager.h View File

@@ -1,3 +1,24 @@
1
+/* Copyright (c) 2018 Martin Estgren
2
+
3
+Permission is hereby granted, free of charge, to any person obtaining a copy
4
+of this software and associated documentation files (the "Software"), to deal
5
+in the Software without restriction, including without limitation the rights
6
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+copies of the Software, and to permit persons to whom the Software is
8
+furnished to do so, subject to the following conditions:
9
+
10
+The above copyright notice and this permission notice shall be included in all
11
+copies or substantial portions of the Software.
12
+
13
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+SOFTWARE.
20
+*/
21
+
1 22
 #ifndef CHUNKMANAGER_H
2 23
 #define CHUNKMANAGER_H
3 24
 #include "Chunk.h"

+ 0
- 38
projects/app/include/Fluid.hpp View File

@@ -1,38 +0,0 @@
1
-#ifndef FLUID_HPP
2
-#define FLUID_HPP
3
-
4
-#include "Grid.hpp"
5
-#include <vector>
6
-#include <glm/glm.hpp>
7
-#include <random>
8
-#include "SpriteBatch.hpp"
9
-#include "Sprite.hpp"
10
-#include "Texture.hpp"
11
-#include "OrthographicCamera.hpp"
12
-struct Particle {
13
-	glm::vec2 position;
14
-	float mass;
15
-	float pressure;
16
-	float density;
17
-	glm::vec2 velocity;
18
-};
19
-class Grid;
20
-
21
-class Fluid {
22
-private:
23
-	std::vector<Particle> _particles;
24
-	const unsigned _NUM_PARTICLES;
25
-
26
-	const float _gas;
27
-	const float _viscocity;
28
-	glm::vec2 poly6(float,float);
29
-	glm::vec2 spiky(float, float);
30
-	glm::vec2 viscocity(float, float);
31
-public:
32
-	Fluid(unsigned,float,float);
33
-
34
-	void solve(float);
35
-	void render(SpriteBatch*, OrthographicCamera*);
36
-};
37
-
38
-#endif

+ 0
- 31
projects/app/include/Grid.hpp View File

@@ -1,31 +0,0 @@
1
-#ifndef GRID_HPP
2
-#define GRID_HPP
3
-#include "Fluid.hpp"
4
-#include <vector>
5
-
6
-struct Particle;
7
-
8
-struct GridCell {
9
-	std::vector<Particle*> particles;
10
-};
11
-
12
-// Keep it simple, just a fixed size dense grid based on a 2d array.
13
-class Grid {
14
-private:
15
-	std::vector<GridCell> _cells;
16
-	const unsigned WIDTH, HEIGHT;
17
-
18
-	// Raster scan helper function
19
-	unsigned indexOf(unsigned x, unsigned y) {
20
-		return y * WIDTH + x;
21
-	}
22
-
23
-public:
24
-	Grid(unsigned width, unsigned height);
25
-	void add(unsigned x, unsigned y, Particle* p);
26
-	void remove(unsigned x, unsigned y, Particle* p);
27
-	std::vector<Particle*> fetch(unsigned x, unsigned y);
28
-
29
-};
30
-
31
-#endif

+ 0
- 18
projects/app/include/Netcode.hpp View File

@@ -1,18 +0,0 @@
1
-#ifndef NETCODE_HPP
2
-#define NETCODE_HPP
3
-#include <boost/asio.hpp>
4
-#include <string>
5
-
6
-class Netcode {
7
-private:
8
-
9
-	boost::asio::io_service _service;
10
-	const std::string _host;
11
-	const unsigned _port;
12
-public:
13
-	Netcode(const std::string& host, unsigned port);
14
-
15
-	void start();
16
-
17
-};
18
-#endif

+ 21
- 0
projects/app/src/Chunk.cpp View File

@@ -1,3 +1,24 @@
1
+/* Copyright (c) 2018 Martin Estgren
2
+
3
+Permission is hereby granted, free of charge, to any person obtaining a copy
4
+of this software and associated documentation files (the "Software"), to deal
5
+in the Software without restriction, including without limitation the rights
6
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+copies of the Software, and to permit persons to whom the Software is
8
+furnished to do so, subject to the following conditions:
9
+
10
+The above copyright notice and this permission notice shall be included in all
11
+copies or substantial portions of the Software.
12
+
13
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+SOFTWARE.
20
+*/
21
+
1 22
 #include "Chunk.h"
2 23
 #include <utility> 
3 24
 #include <iterator>

+ 21
- 0
projects/app/src/ChunkManager.cpp View File

@@ -1,3 +1,24 @@
1
+/* Copyright (c) 2018 Martin Estgren
2
+
3
+Permission is hereby granted, free of charge, to any person obtaining a copy
4
+of this software and associated documentation files (the "Software"), to deal
5
+in the Software without restriction, including without limitation the rights
6
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+copies of the Software, and to permit persons to whom the Software is
8
+furnished to do so, subject to the following conditions:
9
+
10
+The above copyright notice and this permission notice shall be included in all
11
+copies or substantial portions of the Software.
12
+
13
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+SOFTWARE.
20
+*/
21
+
1 22
 #include "ChunkManager.h"
2 23
 #include <exception>
3 24
 #include <fstream>

+ 0
- 76
projects/app/src/Fluid.cc View File

@@ -1,76 +0,0 @@
1
-#include "Fluid.hpp"
2
-#include <iostream>
3
-#include <glm/glm.hpp>
4
-#include <glm/ext.hpp>
5
-#include <cmath>
6
-Fluid::Fluid(unsigned numParticles, float gas, float viscocity) :
7
-	_NUM_PARTICLES{ numParticles }, 
8
-	_gas{gas}, 
9
-	_viscocity{viscocity}
10
-{
11
-	_particles.resize(_NUM_PARTICLES);
12
-
13
-	std::random_device r;
14
-	std::default_random_engine e1(r());
15
-	std::uniform_real_distribution<float> uniform_dist_x(-1, 1);
16
-	std::uniform_real_distribution<float> uniform_dist_y(-1, 1);
17
-
18
-	for (unsigned i = 0; i < _NUM_PARTICLES; ++i) {
19
-		float x = uniform_dist_x(e1);
20
-		float y = uniform_dist_y(e1);
21
-		_particles[i].position = glm::vec2(x, y);
22
-		_particles[i].mass = 0.01f;
23
-		_particles[i].density = 0.0f;
24
-		_particles[i].pressure = 0.0f;
25
-		_particles[i].velocity = glm::vec2(0.0, 0.0);
26
-	}
27
-}
28
-
29
-glm::vec2 Fluid::poly6(float d, float w) {
30
-	const float c = (315 / 64 * 31415) * w*w*w*w*w*w*w*w*w;
31
-	return (d <= w && d > 0.0) ? c* glm::vec2(1,1) * (w*w - d*d) : glm::vec2(0,0);
32
-}
33
-
34
-glm::vec2 Fluid::spiky(float d, float w) {
35
-	const float c = 16 / 3.1415 * w*w*w*w*w*w;
36
-	return (d <= w && d > 0.0) ? c * glm::vec2(1,1) * glm::pow(w - d, 3) : glm::vec2(0, 0);
37
-}
38
-
39
-glm::vec2 Fluid::viscocity(float d, float w) {
40
-	const float c = 15 / 2 * 3.1415 * w*w*w;
41
-	return (d <= w && d > 0.0) ? glm::vec2(1,1) * (-(d*d*d / 2 * w*w*w) + (d*d / w*w) + w / 2 * d - 1.0): glm::vec2(0, 0);
42
-}
43
-
44
-void Fluid::solve(float time_delta) {
45
-	//const float w = 1.0;
46
-	//const float rest_density = 1000.0f;
47
-	//for (Particle& p : _particles) {
48
-	//	p.density = 0.0f;
49
-	//	p.pressure = 0.0;
50
-	//	for (Particle& pp : _particles)
51
-	//		p.density += pp.mass * poly6(glm::distance(p.position, pp.position), w);
52
-	//	p.pressure = (glm::pow(p.density/ rest_density,7) - 1.0) * _gas;
53
-	//	std::cout << p.pressure << " " << p.density << std::endl;
54
-	//}
55
-
56
-	//for (Particle& p : _particles) {
57
-	//	float pressure_force = 0.0;
58
-	//	float viscocity_force = 0.0;
59
-	//	for (Particle& pp : _particles) {
60
-	//		pressure_force -= pp.mass * (p.pressure + pp.pressure) / (2 * (pp.density)) *  spiky(glm::distance(p.position, pp.position), w);
61
-	//		// Changed to length of relative velocity
62
-	//		viscocity_force += pp.mass * (glm::length(pp.velocity - p.velocity)) / pp.density * viscocity(glm::distance(p.position, pp.position), w);
63
-	//	}
64
-	//	p.velocity = p.velocity + pressure_force * time_delta;
65
-	//	p.position = p.position + p.velocity * time_delta;
66
-	//	//std::cout << glm::to_string(p.velocity) << std::endl;
67
-	//}
68
-}
69
-
70
-void Fluid::render(SpriteBatch* batch, OrthographicCamera* camera) {
71
-	batch->begin(camera->combined());
72
-	for (Particle&p : _particles) {
73
-		batch->draw(nullptr, p.position, glm::vec2(1.0, 1.0), glm::vec2(1.0, 1.0), glm::vec4(p.velocity,1.0,1.0), glm::vec2(0.5, 0.5), 0);
74
-	}
75
-	batch->end();
76
-}

+ 0
- 21
projects/app/src/Grid.cc View File

@@ -1,21 +0,0 @@
1
-#include "Grid.hpp"
2
-#include <algorithm>
3
-
4
-
5
-Grid::Grid(unsigned width, unsigned height) : WIDTH{ width }, HEIGHT{ height }
6
-{
7
-	_cells.resize(WIDTH*HEIGHT);
8
-}
9
-
10
-void Grid::add(unsigned x, unsigned y, Particle* p) {
11
-	_cells[indexOf(x, y)].particles.push_back(p);
12
-}
13
-
14
-void Grid::remove(unsigned x, unsigned y, Particle* p) {
15
-	std::vector<Particle*>& particles = _cells[indexOf(x, y)].particles;
16
-	particles.erase(std::remove(std::begin(particles), std::end(particles), p), std::end(particles));
17
-}
18
-
19
-std::vector<Particle*> Grid::fetch(unsigned x, unsigned y) {
20
-	return _cells[indexOf(x, y)].particles;
21
-}

+ 0
- 31
projects/app/src/Netcode.cc View File

@@ -1,31 +0,0 @@
1
-#include "Netcode.hpp"
2
-#include <iostream>
3
-#include <boost/date_time/posix_time/posix_time.hpp>
4
-
5
-Netcode::Netcode(const std::string& host, unsigned port):
6
-	_host{ host }, _port{ port }, _service()
7
-{
8
-}
9
-
10
-void Netcode::start() 
11
-{
12
-	try {
13
-		using boost::asio::ip::tcp;
14
-
15
-		tcp::endpoint endpoint(boost::asio::ip::address::from_string(_host), _port);
16
-		tcp::socket socket(_service);
17
-
18
-		socket.connect(endpoint);
19
-
20
-		char buffer[512];
21
-		size_t length = socket.read_some(boost::asio::buffer(buffer, 512));
22
-
23
-		std::string output(&buffer[0], length);
24
-		std::cout << output;
25
-		std::cout << std::endl;
26
-	}
27
-	catch (...)
28
-	{
29
-
30
-	}
31
-}

+ 21
- 0
projects/app/src/application.cc View File

@@ -1,3 +1,24 @@
1
+/* Copyright (c) 2018 Martin Estgren
2
+
3
+Permission is hereby granted, free of charge, to any person obtaining a copy
4
+of this software and associated documentation files (the "Software"), to deal
5
+in the Software without restriction, including without limitation the rights
6
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+copies of the Software, and to permit persons to whom the Software is
8
+furnished to do so, subject to the following conditions:
9
+
10
+The above copyright notice and this permission notice shall be included in all
11
+copies or substantial portions of the Software.
12
+
13
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+SOFTWARE.
20
+*/
21
+
1 22
 #if defined _WIN32
2 23
 	#define _WIN32_WINNT 0x0501
3 24
 	#include <winsock2.h>

+ 21
- 0
projects/appwrapper/include/Application.hpp View File

@@ -1,3 +1,24 @@
1
+/* Copyright (c) 2018 Martin Estgren
2
+
3
+Permission is hereby granted, free of charge, to any person obtaining a copy
4
+of this software and associated documentation files (the "Software"), to deal
5
+in the Software without restriction, including without limitation the rights
6
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+copies of the Software, and to permit persons to whom the Software is
8
+furnished to do so, subject to the following conditions:
9
+
10
+The above copyright notice and this permission notice shall be included in all
11
+copies or substantial portions of the Software.
12
+
13
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+SOFTWARE.
20
+*/
21
+
1 22
 #ifndef APPLICATION_HPP
2 23
 #define APPLICATION_HPP
3 24
 

+ 22
- 1
projects/appwrapper/include/Locator.hpp View File

@@ -1,4 +1,25 @@
1
-#ifndef LOCATOR_HPP
1
+/* Copyright (c) 2018 Martin Estgren
2
+
3
+Permission is hereby granted, free of charge, to any person obtaining a copy
4
+of this software and associated documentation files (the "Software"), to deal
5
+in the Software without restriction, including without limitation the rights
6
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+copies of the Software, and to permit persons to whom the Software is
8
+furnished to do so, subject to the following conditions:
9
+
10
+The above copyright notice and this permission notice shall be included in all
11
+copies or substantial portions of the Software.
12
+
13
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+SOFTWARE.
20
+*/
21
+
22
+ifndef LOCATOR_HPP
2 23
 #define LOCATOR_HPP
3 24
 #include <GL/glew.h>
4 25
 #include <GLFW/glfw3.h>

+ 21
- 0
projects/appwrapper/include/OpenGLUtils.hpp View File

@@ -1,3 +1,24 @@
1
+/* Copyright (c) 2018 Martin Estgren
2
+
3
+Permission is hereby granted, free of charge, to any person obtaining a copy
4
+of this software and associated documentation files (the "Software"), to deal
5
+in the Software without restriction, including without limitation the rights
6
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+copies of the Software, and to permit persons to whom the Software is
8
+furnished to do so, subject to the following conditions:
9
+
10
+The above copyright notice and this permission notice shall be included in all
11
+copies or substantial portions of the Software.
12
+
13
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+SOFTWARE.
20
+*/
21
+
1 22
 #ifndef OPENGLUTILS_HPP
2 23
 #define OPENGLUTILS_HPP
3 24
 #include <GL/glew.h>

+ 21
- 0
projects/appwrapper/include/OrthographicCamera.hpp View File

@@ -1,3 +1,24 @@
1
+/* Copyright (c) 2018 Martin Estgren
2
+
3
+Permission is hereby granted, free of charge, to any person obtaining a copy
4
+of this software and associated documentation files (the "Software"), to deal
5
+in the Software without restriction, including without limitation the rights
6
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+copies of the Software, and to permit persons to whom the Software is
8
+furnished to do so, subject to the following conditions:
9
+
10
+The above copyright notice and this permission notice shall be included in all
11
+copies or substantial portions of the Software.
12
+
13
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+SOFTWARE.
20
+*/
21
+
1 22
 #ifndef ORTHOGRAPHIC_CAMERA_HPP
2 23
 #define ORTHOGRAPHIC_CAMERA_HPP
3 24
 #include <GL/glew.h>

+ 21
- 0
projects/appwrapper/include/Shader.hpp View File

@@ -1,3 +1,24 @@
1
+/* Copyright (c) 2018 Martin Estgren
2
+
3
+Permission is hereby granted, free of charge, to any person obtaining a copy
4
+of this software and associated documentation files (the "Software"), to deal
5
+in the Software without restriction, including without limitation the rights
6
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+copies of the Software, and to permit persons to whom the Software is
8
+furnished to do so, subject to the following conditions:
9
+
10
+The above copyright notice and this permission notice shall be included in all
11
+copies or substantial portions of the Software.
12
+
13
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+SOFTWARE.
20
+*/
21
+
1 22
 #ifndef SHADER_HPP
2 23
 #define SHADER_HPP
3 24
 #include <string>

+ 21
- 0
projects/appwrapper/include/ShaderProgram.hpp View File

@@ -1,3 +1,24 @@
1
+/* Copyright (c) 2018 Martin Estgren
2
+
3
+Permission is hereby granted, free of charge, to any person obtaining a copy
4
+of this software and associated documentation files (the "Software"), to deal
5
+in the Software without restriction, including without limitation the rights
6
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+copies of the Software, and to permit persons to whom the Software is
8
+furnished to do so, subject to the following conditions:
9
+
10
+The above copyright notice and this permission notice shall be included in all
11
+copies or substantial portions of the Software.
12
+
13
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+SOFTWARE.
20
+*/
21
+
1 22
 #ifndef SHADERPROGRAM_HPP
2 23
 #define SHADERPROGRAM_HPP
3 24
 #include <GL/glew.h>

+ 21
- 0
projects/appwrapper/include/Sprite.hpp View File

@@ -1,3 +1,24 @@
1
+/* Copyright (c) 2018 Martin Estgren
2
+
3
+Permission is hereby granted, free of charge, to any person obtaining a copy
4
+of this software and associated documentation files (the "Software"), to deal
5
+in the Software without restriction, including without limitation the rights
6
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+copies of the Software, and to permit persons to whom the Software is
8
+furnished to do so, subject to the following conditions:
9
+
10
+The above copyright notice and this permission notice shall be included in all
11
+copies or substantial portions of the Software.
12
+
13
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+SOFTWARE.
20
+*/
21
+
1 22
 #ifndef SPRITE_HPP
2 23
 #define SPRITE_HPP
3 24
 #include <GL/glew.h>

+ 21
- 0
projects/appwrapper/include/SpriteBatch.hpp View File

@@ -1,3 +1,24 @@
1
+/* Copyright (c) 2018 Martin Estgren
2
+
3
+Permission is hereby granted, free of charge, to any person obtaining a copy
4
+of this software and associated documentation files (the "Software"), to deal
5
+in the Software without restriction, including without limitation the rights
6
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+copies of the Software, and to permit persons to whom the Software is
8
+furnished to do so, subject to the following conditions:
9
+
10
+The above copyright notice and this permission notice shall be included in all
11
+copies or substantial portions of the Software.
12
+
13
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+SOFTWARE.
20
+*/
21
+
1 22
 #ifndef SPRITEBATCH_HPP
2 23
 #define SPRITEBATCH_HPP
3 24
 #include <GL/glew.h>

+ 21
- 0
projects/appwrapper/include/Texture.hpp View File

@@ -1,3 +1,24 @@
1
+/* Copyright (c) 2018 Martin Estgren
2
+
3
+Permission is hereby granted, free of charge, to any person obtaining a copy
4
+of this software and associated documentation files (the "Software"), to deal
5
+in the Software without restriction, including without limitation the rights
6
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+copies of the Software, and to permit persons to whom the Software is
8
+furnished to do so, subject to the following conditions:
9
+
10
+The above copyright notice and this permission notice shall be included in all
11
+copies or substantial portions of the Software.
12
+
13
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+SOFTWARE.
20
+*/
21
+
1 22
 #ifndef TEXTURE_HPP
2 23
 #define TEXTURE_HPP
3 24
 

+ 3
- 0
projects/appwrapper/src/Application.cpp View File

@@ -1,3 +1,6 @@
1
+/* Copyright (c) 2018 Martin Estgren
2
+*/
3
+
1 4
 #include "Application.hpp"
2 5
 #include <iostream>
3 6
 #include "stringPatch.hpp"

+ 3
- 0
projects/appwrapper/src/Locator.cpp View File

@@ -1,3 +1,6 @@
1
+/* Copyright (c) 2018 Martin Estgren
2
+*/
3
+
1 4
 #include "Locator.hpp"
2 5
 #include <iostream>
3 6
 #include <utility>

+ 3
- 0
projects/appwrapper/src/OpenGLUtils.cpp View File

@@ -1,3 +1,6 @@
1
+/* Copyright (c) 2018 Martin Estgren
2
+*/
3
+
1 4
 #include "OpenGLUtils.hpp"
2 5
 #include <GL/glew.h>
3 6
 

+ 3
- 0
projects/appwrapper/src/OrthographicCamera.cpp View File

@@ -1,3 +1,6 @@
1
+/* Copyright (c) 2018 Martin Estgren
2
+*/
3
+
1 4
 #include "OrthographicCamera.hpp"
2 5
 #include <GL/glew.h>
3 6
 #include <glm/gtc/matrix_transform.hpp>

+ 3
- 0
projects/appwrapper/src/Shader.cpp View File

@@ -1,3 +1,6 @@
1
+/* Copyright (c) 2018 Martin Estgren
2
+*/
3
+
1 4
 #include "Shader.hpp"
2 5
 #include <iostream>
3 6
 #include <fstream>

+ 3
- 0
projects/appwrapper/src/ShaderProgram.cpp View File

@@ -1,3 +1,6 @@
1
+/* Copyright (c) 2018 Martin Estgren
2
+*/
3
+
1 4
 #include "ShaderProgram.hpp"
2 5
 #include <iostream>
3 6
 #include "glm/glm.hpp"

+ 3
- 0
projects/appwrapper/src/Sprite.cpp View File

@@ -1,3 +1,6 @@
1
+/* Copyright (c) 2018 Martin Estgren
2
+*/
3
+
1 4
 #include "Sprite.hpp"
2 5
 
3 6
 Sprite::Sprite(

+ 3
- 0
projects/appwrapper/src/SpriteBatch.cpp View File

@@ -1,3 +1,6 @@
1
+/* Copyright (c) 2018 Martin Estgren
2
+*/
3
+
1 4
 #include "SpriteBatch.hpp"
2 5
 #include <iostream>
3 6
 

Loading…
Cancel
Save