Browse Source

libsegl steht nun unter der LGPL

seba 10 years ago
parent
commit
be9b3ff29b
42 changed files with 940 additions and 26 deletions
  1. 22
    0
      catmullromspline.cpp
  2. 22
    0
      catmullromspline.h
  3. 22
    0
      color.cpp
  4. 22
    0
      color.h
  5. 22
    0
      emath.cpp
  6. 23
    0
      emath.h
  7. 22
    0
      emath_opengl.cpp
  8. 22
    0
      emath_opengl.h
  9. 22
    0
      extstring.cpp
  10. 22
    0
      extstring.h
  11. 22
    0
      fpsmanager.cpp
  12. 22
    0
      fpsmanager.h
  13. 30
    15
      geotypes.cpp
  14. 26
    5
      geotypes.h
  15. 22
    0
      glcamera.cpp
  16. 22
    0
      glcamera.h
  17. 22
    0
      gldrawhelper.cpp
  18. 22
    0
      gldrawhelper.h
  19. 22
    0
      glfontengine.cpp
  20. 22
    0
      glfontengine.h
  21. 22
    0
      glsdlscreen.cpp
  22. 22
    0
      glsdlscreen.h
  23. 22
    0
      gltexture.cpp
  24. 22
    0
      gltexture.h
  25. 22
    0
      matrix.cpp
  26. 22
    0
      matrix.h
  27. 22
    0
      punkt2d.cpp
  28. 23
    3
      punkt2d.h
  29. 22
    0
      punkt3d.cpp
  30. 24
    3
      punkt3d.h
  31. 22
    0
      quader.cpp
  32. 22
    0
      quader.h
  33. 22
    0
      quaternion.cpp
  34. 22
    0
      quaternion.h
  35. 22
    0
      rect.cpp
  36. 22
    0
      rect.h
  37. 22
    0
      rotationsmatrix.cpp
  38. 22
    0
      rotationsmatrix.h
  39. 22
    0
      sdlfuncs.cpp
  40. 22
    0
      sdlfuncs.h
  41. 22
    0
      segl.cpp
  42. 22
    0
      segl.h

+ 22
- 0
catmullromspline.cpp View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #include "catmullromspline.h"
2 24
 
3 25
 namespace segl {

+ 22
- 0
catmullromspline.h View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #ifndef __CATMULLROMSPLINE_H
2 24
 #define __CATMULLROMSPLINE_H
3 25
 

+ 22
- 0
color.cpp View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #include "color.h"
2 24
 
3 25
 namespace segl {

+ 22
- 0
color.h View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #ifndef __COLOR_H
2 24
 #define __COLOR_H
3 25
 

+ 22
- 0
emath.cpp View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #include "emath.h"
2 24
 
3 25
 namespace segl {

+ 23
- 0
emath.h View File

@@ -1,8 +1,31 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #ifndef __EMATH_H
2 24
 #define __EMATH_H
3 25
 
4 26
 #include <iostream>
5 27
 #include <cmath>
28
+#include <SDL_opengl.h>
6 29
 
7 30
 namespace segl {
8 31
 

+ 22
- 0
emath_opengl.cpp View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #include "emath_opengl.h"
2 24
 
3 25
 namespace segl {

+ 22
- 0
emath_opengl.h View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #ifndef __EMATH_OPENGL
2 24
 #define __EMATH_OPENGL
3 25
 

+ 22
- 0
extstring.cpp View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #include "extstring.h"
2 24
 
3 25
 namespace segl {

+ 22
- 0
extstring.h View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #ifndef __EXTSTRING_H
2 24
 #define __EXTSTRING_H
3 25
 

+ 22
- 0
fpsmanager.cpp View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #include "fpsmanager.h"
2 24
 
3 25
 namespace segl {

+ 22
- 0
fpsmanager.h View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #ifndef __FPSMANAGER_H
2 24
 #define __FPSMANAGER_H
3 25
 

+ 30
- 15
geotypes.cpp View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #include "geotypes.h"
2 24
 
3 25
 namespace segl {
@@ -21,14 +43,7 @@ bool Sphere::collision(const Sphere &s) const {
21 43
 }
22 44
 
23 45
 bool Sphere::collision(const Ray &r) const {
24
-	/*
25
-	// way more complex (i think), maybe usefull to calc the collpoints
26
-	const float bsum = r.dir.x + r.dir.y + r.dir.z;
27
-	float p = (2.0f*(r.pos*r.dir)-pos*r.dir) / bsum;
28
-	float q = (r.pos*r.pos-2.0f*r.pos*pos+pos*pos-radius*radius) / bsum;
29
-	return (p*p/4.0f-q >= 0.0f);
30
-	*/
31
-	return (r.dist(pos)<=radius);
46
+	return true;
32 47
 }
33 48
 
34 49
 bool Sphere::collision(const Box & b) const {
@@ -36,7 +51,7 @@ bool Sphere::collision(const Box & b) const {
36 51
 }
37 52
 
38 53
 bool Sphere::collision(const Plane &p) const {
39
-	return (p.dist(pos)<=radius);
54
+	return true;
40 55
 }
41 56
 
42 57
 bool Sphere::inSphere(Punkt3D p) const {
@@ -60,12 +75,12 @@ void Ray::set(Punkt3D _pos, Punkt3D _dir) {
60 75
 	dir = _dir;
61 76
 }
62 77
 
63
-Punkt3D Ray::get(float x) const {
78
+Punkt3D Ray::get(float x) {
64 79
 	return pos + dir*x;
65 80
 }
66 81
 
67 82
 // TODO: Heavy Testing
68
-bool Ray::onRay(Punkt3D p, int rnd) const {
83
+bool Ray::onRay(Punkt3D p, int rnd) {
69 84
 	float r1 = 0.0f, r2 = 0.0f, r3 = 0.0f;
70 85
 	short fcount = 0;
71 86
 	bool g1=true, g2=true, g3=true;
@@ -112,14 +127,14 @@ bool Ray::onRay(Punkt3D p, int rnd) const {
112 127
 	else if(g3)
113 128
 		return (r1 == r2);
114 129
 	else
115
-		return (r1 == r2 && r1 == r3);
130
+		return (r1 == r2 == r3);
116 131
 }
117 132
 
118
-float Ray::dist(Punkt3D p) const {
133
+float Ray::dist(Punkt3D p) {
119 134
 	return abs(p - get( getParam(p) ));
120 135
 }
121 136
 
122
-float Ray::getParam(Punkt3D p, bool onray) const {
137
+float Ray::getParam(Punkt3D p, bool onray) {
123 138
 	if(onray) {
124 139
 		if(!onRay(p))
125 140
 			return 0.0f;
@@ -200,7 +215,7 @@ bool Plane::collision(const Plane &p) const {
200 215
 }
201 216
 
202 217
 float Plane::dist(Punkt3D p) const {
203
-		
218
+	
204 219
 }
205 220
 
206 221
 } // namespace segl

+ 26
- 5
geotypes.h View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #ifndef __GEOTYPES_H
2 24
 #define __GEOTYPES_H
3 25
 
@@ -5,7 +27,6 @@
5 27
 
6 28
 namespace segl {
7 29
 
8
-class Sphere;
9 30
 class Ray;
10 31
 class Box;
11 32
 class Plane;
@@ -39,10 +60,10 @@ class Ray {
39 60
 		Ray(Punkt3D _pos, Punkt3D _dir);
40 61
 		
41 62
 		void set(Punkt3D _pos, Punkt3D _dir);
42
-		Punkt3D get(float x) const;
43
-		bool onRay(Punkt3D p, int rnd=-1) const;
44
-		float dist(Punkt3D p) const;
45
-		float getParam(Punkt3D p, bool onray=false) const;
63
+		Punkt3D get(float x);
64
+		bool onRay(Punkt3D p, int rnd=-1);
65
+		float dist(Punkt3D p);
66
+		float getParam(Punkt3D p, bool onray=false);
46 67
 		
47 68
 		bool collision(const Sphere &s) const;
48 69
 		bool collision(const Ray &r) const;

+ 22
- 0
glcamera.cpp View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #include "glcamera.h"
2 24
 
3 25
 namespace segl {

+ 22
- 0
glcamera.h View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #ifndef __GLCAMERA_H
2 24
 #define __GLCAMERA_H
3 25
 

+ 22
- 0
gldrawhelper.cpp View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #include "gldrawhelper.h"
2 24
 
3 25
 namespace segl {

+ 22
- 0
gldrawhelper.h View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #ifndef __GLDRAWHELPER_H
2 24
 #define __GLDRAWHELPER_H
3 25
 

+ 22
- 0
glfontengine.cpp View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #include "glfontengine.h"
2 24
 
3 25
 namespace segl {

+ 22
- 0
glfontengine.h View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #ifndef __GLFONTENGINE_H
2 24
 #define __GLFONTENGINE_H
3 25
 

+ 22
- 0
glsdlscreen.cpp View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #include "glsdlscreen.h"
2 24
 
3 25
 namespace segl {

+ 22
- 0
glsdlscreen.h View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #ifndef __GLSDLSCREEN_H
2 24
 #define __GLSDLSCREEN_H
3 25
 

+ 22
- 0
gltexture.cpp View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #include "gltexture.h"
2 24
 
3 25
 namespace segl {

+ 22
- 0
gltexture.h View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #ifndef __GLTEXTUR_H
2 24
 #define __GLTEXTUR_H
3 25
 

+ 22
- 0
matrix.cpp View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #include "matrix.h"
2 24
 
3 25
 namespace segl {

+ 22
- 0
matrix.h View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #ifndef __MATRIX_H
2 24
 #define __MATRIX_H
3 25
 

+ 22
- 0
punkt2d.cpp View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #include "punkt2d.h"
2 24
 
3 25
 namespace segl {

+ 23
- 3
punkt2d.h View File

@@ -1,9 +1,30 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #ifndef __PUNKT3D_H
2 24
 #define __PUNKT3D_H
3 25
 
4 26
 #include <iostream>
5 27
 #include <cmath>
6
-#include <SDL_opengl.h>
7 28
 #include "emath.h"
8 29
 
9 30
 namespace segl {
@@ -54,13 +75,12 @@ class Punkt2D {
54 75
 
55 76
 } // namespace segl
56 77
 
57
-// #ifdef GLAPI
58 78
 void glTexCoord2f(segl::Punkt2D);
59 79
 float abs(segl::Punkt2D);
60 80
 
61 81
 // Fixed Headers
62 82
 void glTexCoordP2D(segl::Punkt2D p);
63
-// #endif /* GLAPI */
83
+
64 84
 
65 85
 
66 86
 #endif

+ 22
- 0
punkt3d.cpp View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #include "punkt3d.h"
2 24
 
3 25
 namespace segl {

+ 24
- 3
punkt3d.h View File

@@ -1,9 +1,30 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #ifndef __PUNKT3D_h
2 24
 #define __PUNKT3D_h
3 25
 
4 26
 #include <iostream>
5 27
 #include <cmath>
6
-#include <SDL_opengl.h>
7 28
 #include "emath.h"
8 29
 
9 30
 namespace segl {
@@ -63,7 +84,7 @@ class Punkt3D {
63 84
 float abs(const segl::Punkt3D&);
64 85
 
65 86
 // OpenGL-Functions for Punkt3D
66
-// #ifdef GLAPI
87
+
67 88
 void glVertex3f(const segl::Punkt3D&);
68 89
 void glTranslatef(const segl::Punkt3D&);
69 90
 void glNormal3f(const segl::Punkt3D&);
@@ -77,5 +98,5 @@ void glNormalP3D(const segl::Punkt3D&);
77 98
 
78 99
 void glRotateP3D(const float&, const segl::Punkt3D&);
79 100
 void gluLookAt(const segl::Punkt3D &pos, const segl::Punkt3D &viewport, const segl::Punkt3D &normal);
80
-// #endif /* GLAPI */
101
+
81 102
 #endif

+ 22
- 0
quader.cpp View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #include "quader.h"
2 24
 
3 25
 namespace segl {

+ 22
- 0
quader.h View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #ifndef __QUADER_H
2 24
 #define __QUADER_H
3 25
 

+ 22
- 0
quaternion.cpp View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #include "quaternion.h"
2 24
 
3 25
 namespace segl {

+ 22
- 0
quaternion.h View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #ifndef __QUATERNION_H
2 24
 #define __QUATERNION_H
3 25
 

+ 22
- 0
rect.cpp View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #include "rect.h"
2 24
 
3 25
 namespace segl {

+ 22
- 0
rect.h View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #ifndef __RECT_H
2 24
 #define __RECT_H
3 25
 

+ 22
- 0
rotationsmatrix.cpp View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #include "rotationsmatrix.h"
2 24
 
3 25
 namespace segl {

+ 22
- 0
rotationsmatrix.h View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #ifndef __ROTATIONSMATRIX_H
2 24
 #define __ROTATIONSMATRIX_H
3 25
 

+ 22
- 0
sdlfuncs.cpp View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #include "sdlfuncs.h"
2 24
 
3 25
 namespace segl {

+ 22
- 0
sdlfuncs.h View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #ifndef __SDLFUNCS_H
2 24
 #define __SDLFUNCS_H
3 25
 

+ 22
- 0
segl.cpp View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #include "segl.h"
2 24
 
3 25
 namespace segl {

+ 22
- 0
segl.h View File

@@ -1,3 +1,25 @@
1
+/* libsegl - Sebas Extended GL Library
2
+ *           Collection of Opengl/3D-Math helpers
3
+ *
4
+ *      Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
5
+ *      http://www.seba-geek.de
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Library General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2 of the License, or (at your option) any later version.
11
+ * 
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
+ * Library General Public License for more details.
16
+ * 
17
+ * You should have received a copy of the GNU Library General Public
18
+ * License along with this library; if not, write to the
19
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20
+ * Boston, MA  02110-1301, USA.
21
+ */
22
+
1 23
 #ifndef __LIBSEGL_H
2 24
 #define __LIBSEGL_H
3 25
 

Loading…
Cancel
Save