summaryrefslogtreecommitdiffstats
path: root/devel/glui/files
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2001-10-17 18:27:14 +0000
committerijliao <ijliao@FreeBSD.org>2001-10-17 18:27:14 +0000
commit85f7dd6663d1858cc09b495e2123dbe076c185d7 (patch)
treeb6a4072d7eedaa17d5a66b974a49062ee62af8d3 /devel/glui/files
parentf365cab731fb19c6877ae242e9f767ea329750cb (diff)
downloadFreeBSD-ports-85f7dd6663d1858cc09b495e2123dbe076c185d7.zip
FreeBSD-ports-85f7dd6663d1858cc09b495e2123dbe076c185d7.tar.gz
add glui
GLUT-based C++ user interface library PR: 30822 Submitted by: Matthew West <mwest@uct.ac.za>
Diffstat (limited to 'devel/glui/files')
-rw-r--r--devel/glui/files/patch-aa32
-rw-r--r--devel/glui/files/patch-ab12
2 files changed, 44 insertions, 0 deletions
diff --git a/devel/glui/files/patch-aa b/devel/glui/files/patch-aa
new file mode 100644
index 0000000..9d2727a
--- /dev/null
+++ b/devel/glui/files/patch-aa
@@ -0,0 +1,32 @@
+--- algebra3.cpp.orig Fri Jul 9 22:38:46 1999
++++ algebra3.cpp Tue Sep 25 21:50:30 2001
+@@ -505,8 +505,7 @@
+ { return a*d; }
+
+ vec4 operator * (const mat4& a, const vec4& v) {
+- #define ROWCOL(i) a.v[i].n[0]*v.n[VX] + a.v[i].n[1]*v.n[VY] \
+- + a.v[i].n[2]*v.n[VZ] + a.v[i].n[3]*v.n[VW]
++ #define ROWCOL(i) a.v[i].n[0]*v.n[VX] + a.v[i].n[1]*v.n[VY] + a.v[i].n[2]*v.n[VZ] + a.v[i].n[3]*v.n[VW]
+ return vec4(ROWCOL(0), ROWCOL(1), ROWCOL(2), ROWCOL(3));
+ #undef ROWCOL
+ }
+@@ -680,8 +679,7 @@
+ { return mat3(a.v[0] - b.v[0], a.v[1] - b.v[1], a.v[2] - b.v[2]); }
+
+ mat3 operator * (mat3& a, mat3& b) {
+- #define ROWCOL(i, j) \
+- a.v[i].n[0]*b.v[0][j] + a.v[i].n[1]*b.v[1][j] + a.v[i].n[2]*b.v[2][j]
++ #define ROWCOL(i, j) a.v[i].n[0]*b.v[0][j] + a.v[i].n[1]*b.v[1][j] + a.v[i].n[2]*b.v[2][j]
+ return mat3(vec3(ROWCOL(0,0), ROWCOL(0,1), ROWCOL(0,2)),
+ vec3(ROWCOL(1,0), ROWCOL(1,1), ROWCOL(1,2)),
+ vec3(ROWCOL(2,0), ROWCOL(2,1), ROWCOL(2,2)));
+@@ -895,8 +893,7 @@
+ { return mat4(a.v[0] - b.v[0], a.v[1] - b.v[1], a.v[2] - b.v[2], a.v[3] - b.v[3]); }
+
+ mat4 operator * (mat4& a, mat4& b) {
+- #define ROWCOL(i, j) a.v[i].n[0]*b.v[0][j] + a.v[i].n[1]*b.v[1][j] + \
+- a.v[i].n[2]*b.v[2][j] + a.v[i].n[3]*b.v[3][j]
++ #define ROWCOL(i, j) a.v[i].n[0]*b.v[0][j] + a.v[i].n[1]*b.v[1][j] + a.v[i].n[2]*b.v[2][j] + a.v[i].n[3]*b.v[3][j]
+ return mat4(
+ vec4(ROWCOL(0,0), ROWCOL(0,1), ROWCOL(0,2), ROWCOL(0,3)),
+ vec4(ROWCOL(1,0), ROWCOL(1,1), ROWCOL(1,2), ROWCOL(1,3)),
diff --git a/devel/glui/files/patch-ab b/devel/glui/files/patch-ab
new file mode 100644
index 0000000..bd4eff6
--- /dev/null
+++ b/devel/glui/files/patch-ab
@@ -0,0 +1,12 @@
+--- stdinc.h.orig Fri Jul 9 22:38:46 1999
++++ stdinc.h Tue Sep 25 21:50:32 2001
+@@ -99,8 +99,7 @@
+
+ /************ check if a 2D point lies within a 2D box ***************/
+ #ifndef PT_IN_BOX
+-#define PT_IN_BOX( x, y, lo_x, hi_x, lo_y, hi_y ) \
+-( IN_BOUNDS(x,lo_x,hi_x) AND IN_BOUNDS(y,lo_y,hi_y) )
++#define PT_IN_BOX( x, y, lo_x, hi_x, lo_y, hi_y ) ( IN_BOUNDS(x,lo_x,hi_x) AND IN_BOUNDS(y,lo_y,hi_y) )
+ #endif
+
+ /****** check if value lies on proper side of another value *****/
OpenPOWER on IntegriCloud