Agar-SVN | 11 Dec 07:07
Favicon

Agar: r9062 - in trunk: core math

Author: vedge
Date: 2011-12-11 01:07:37 -0500 (Sun, 11 Dec 2011)
New Revision: 9062

Modified:
   trunk/core/.manlinks.mk
   trunk/math/.manlinks.mk
   trunk/math/M_Plane.3
Log:
remove circular manlink

Modified: trunk/core/.manlinks.mk
===================================================================
--- trunk/core/.manlinks.mk	2011-12-11 02:40:41 UTC (rev 9061)
+++ trunk/core/.manlinks.mk	2011-12-11 06:07:37 UTC (rev 9062)
@@ -155,6 +155,8 @@
 CATLINKS+=AG_Object.cat3:AG_ObjectGetInheritHierString.cat3
 MANLINKS+=AG_Object.3:AGOBJECT_FOREACH_CLASS.3
 CATLINKS+=AG_Object.cat3:AGOBJECT_FOREACH_CLASS.cat3
+MANLINKS+=AG_Object.3:AG_ObjectClass.3
+CATLINKS+=AG_Object.cat3:AG_ObjectClass.cat3
 MANLINKS+=AG_Object.3:AG_ObjectInUse.3
 CATLINKS+=AG_Object.cat3:AG_ObjectInUse.cat3
 MANLINKS+=AG_Object.3:AG_ObjectAddDep.3

Modified: trunk/math/.manlinks.mk
===================================================================
--- trunk/math/.manlinks.mk	2011-12-11 02:40:41 UTC (rev 9061)
+++ trunk/math/.manlinks.mk	2011-12-11 06:07:37 UTC (rev 9062)
@@ -325,8 +325,6 @@
(Continue reading)

Agar-SVN | 12 Dec 03:15
Favicon

Agar: r9067 - trunk/gui

Author: vedge
Date: 2011-12-11 21:15:32 -0500 (Sun, 11 Dec 2011)
New Revision: 9067

Modified:
   trunk/gui/glview.c
   trunk/gui/glview.h
Log:
accept generic object pointers in AG_GLView*Fn()

Modified: trunk/gui/glview.c
===================================================================
--- trunk/gui/glview.c	2011-12-12 02:14:39 UTC (rev 9066)
+++ trunk/gui/glview.c	2011-12-12 02:15:32 UTC (rev 9067)
@@ -127,8 +127,10 @@
 }

 void
-AG_GLViewDrawFn(AG_GLView *glv, AG_EventFn fn, const char *fmt, ...)
+AG_GLViewDrawFn(void *obj, AG_EventFn fn, const char *fmt, ...)
 {
+	AG_GLView *glv = obj;
+
 	AG_ObjectLock(glv);
 	glv->draw_ev = AG_SetEvent(glv, NULL, fn, NULL);
 	AG_EVENT_GET_ARGS(glv->draw_ev, fmt);
@@ -136,8 +138,10 @@
 }

 void
(Continue reading)

Agar-SVN | 12 Dec 03:14
Favicon

Agar: r9066 - trunk/math

Author: vedge
Date: 2011-12-11 21:14:39 -0500 (Sun, 11 Dec 2011)
New Revision: 9066

Added:
   trunk/math/M_PointSet.3
Modified:
   trunk/math/M_Polygon.3
   trunk/math/Makefile
   trunk/math/m_circle.c
   trunk/math/m_geometry.h
   trunk/math/m_point_set.c
   trunk/math/m_point_set.h
   trunk/math/m_polygon.c
   trunk/math/m_polygon.h
Log:
- document M_PointSet.
- implement M_Polygon{To,From}PointSet*(), M_Polygon{Copy,Scale,Offset}()

Added: trunk/math/M_PointSet.3
===================================================================
--- trunk/math/M_PointSet.3	                        (rev 0)
+++ trunk/math/M_PointSet.3	2011-12-12 02:14:39 UTC (rev 9066)
@@ -0,0 +1,289 @@
+.\"
+.\" Copyright (c) 2009-2011 Hypertriton, Inc. <http://hypertriton.com/>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
(Continue reading)

Agar-SVN | 12 Dec 02:50
Favicon

Agar: r9065 - trunk/math

Author: vedge
Date: 2011-12-11 20:50:37 -0500 (Sun, 11 Dec 2011)
New Revision: 9065

Modified:
   trunk/math/M_Line.3
   trunk/math/m_line.c
   trunk/math/m_line.h
Log:
- add M_LineLineShortest3(): compute shortest segment connecting two
  lines in R^3.
- add M_Line{Init,Term}Pt[23] shorthands.

Modified: trunk/math/M_Line.3
===================================================================
--- trunk/math/M_Line.3	2011-12-11 06:08:21 UTC (rev 9064)
+++ trunk/math/M_Line.3	2011-12-12 01:50:37 UTC (rev 9065)
@@ -1,5 +1,5 @@
 .\"
-.\" Copyright (c) 2009 Hypertriton, Inc. <http://hypertriton.com/>
+.\" Copyright (c) 2009-2011 Hypertriton, Inc. <http://hypertriton.com/>
 .\"
 .\" Redistribution and use in source and binary forms, with or without
 .\" modification, are permitted provided that the following conditions
@@ -38,19 +38,19 @@
 .\" MANLINK(M_Line2)
 The
 .Ft M_Line2
-structure describes a line segment or half-line in R^2 in terms of an
-origin point
(Continue reading)

Agar-SVN | 19 Dec 04:25
Favicon

Agar: r9068 - trunk

Author: vedge
Date: 2011-12-18 22:25:51 -0500 (Sun, 18 Dec 2011)
New Revision: 9068

Modified:
   trunk/configure
Log:
regen

Modified: trunk/configure
===================================================================
--- trunk/configure	2011-12-12 02:15:32 UTC (rev 9067)
+++ trunk/configure	2011-12-19 03:25:51 UTC (rev 9068)
@@ -1682,7 +1682,7 @@
 cat << EOT > conftest.c
 int main(int argc, char *argv[]) { return (0); }
 EOT
-$LIBTOOL --quiet --mode=compile $CC --tag=CC $CFLAGS $TEST_CFLAGS -o $testdir/conftest.o
conftest.c 2>>config.log
+$LIBTOOL --quiet --mode=compile --tag=CC $CC $CFLAGS $TEST_CFLAGS -o $testdir/conftest.o
conftest.c 2>>config.log
 if [ $? == 0 ]; then
 echo "yes"
 echo "yes" >> config.log
Agar-SVN | 20 Dec 05:23
Favicon

Agar: r9070 - trunk/gui

Author: vedge
Date: 2011-12-19 23:23:20 -0500 (Mon, 19 Dec 2011)
New Revision: 9070

Modified:
   trunk/gui/AG_DriverSw.3
   trunk/gui/AG_InitGraphics.3
   trunk/gui/drv_mw.c
   trunk/gui/drv_mw.h
   trunk/gui/drv_sdl_common.c
   trunk/gui/drv_sdlfb.c
   trunk/gui/drv_sdlgl.c
   trunk/gui/drv_sw.c
   trunk/gui/drv_sw.h
   trunk/gui/gui.h
   trunk/gui/window.c
Log:
- implement AG_SetVideoSurfaceSDL(); add setVideoContext() op to AG_DriverSw.
- for multiple window drivers, keep a global stack of modal windows.

Modified: trunk/gui/AG_DriverSw.3
===================================================================
--- trunk/gui/AG_DriverSw.3	2011-12-19 03:44:06 UTC (rev 9069)
+++ trunk/gui/AG_DriverSw.3	2011-12-20 04:23:20 UTC (rev 9070)
@@ -63,6 +63,7 @@
 	int  (*openVideo)(void *drv, Uint w, Uint h, int depth,
 	                  Uint flags);
 	int  (*openVideoContext)(void *drv, void *ctx, Uint flags);
+	int  (*setVideoContext)(void *drv, void *ctx);
 	void (*closeVideo)(void *drv);
(Continue reading)

Agar-SVN | 22 Dec 04:47
Favicon

Agar: r9071 - trunk/gui

Author: vedge
Date: 2011-12-21 22:47:22 -0500 (Wed, 21 Dec 2011)
New Revision: 9071

Modified:
   trunk/gui/gui_pub.h
   trunk/gui/sdl.h
Log:
pull in <gui/cursors.h>

Modified: trunk/gui/gui_pub.h
===================================================================
--- trunk/gui/gui_pub.h	2011-12-20 04:23:20 UTC (rev 9070)
+++ trunk/gui/gui_pub.h	2011-12-22 03:47:22 UTC (rev 9071)
@@ -62,9 +62,8 @@
 #include <agar/gui/load_surface.h>
 #include <agar/gui/load_color.h>

-#ifdef __APPLE__
 /* Work around MacOS X retardation */
-#include <agar/gui/cursors.h>
+#ifdef __APPLE__
 #include <agar/gui/sdl.h>
 #endif

Modified: trunk/gui/sdl.h
===================================================================
--- trunk/gui/sdl.h	2011-12-20 04:23:20 UTC (rev 9070)
+++ trunk/gui/sdl.h	2011-12-22 03:47:22 UTC (rev 9071)
@@ -5,6 +5,7 @@
(Continue reading)

Agar-SVN | 23 Dec 02:16
Favicon

Agar: r9072 - in trunk: . gui

Author: vedge
Date: 2011-12-22 20:16:24 -0500 (Thu, 22 Dec 2011)
New Revision: 9072

Modified:
   trunk/configure
   trunk/configure.in
   trunk/gui/load_png.c
Log:
don't look for HAVE_LIBPNG14 if !HAVE_PNG

Modified: trunk/configure
===================================================================
--- trunk/configure	2011-12-22 03:47:22 UTC (rev 9071)
+++ trunk/configure	2011-12-23 01:16:24 UTC (rev 9072)
@@ -6608,11 +6608,15 @@
 			else
 echo "#undef HAVE_PNG" >$BLD/include/agar/config/have_png.h
 echo "hdefs[\"HAVE_PNG\"] = nil" >>configure.lua
+echo "#undef HAVE_LIBPNG14" >$BLD/include/agar/config/have_libpng14.h
+echo "hdefs[\"HAVE_LIBPNG14\"] = nil" >>configure.lua
 			fi
 		fi
 	else
 echo "#undef HAVE_PNG" >$BLD/include/agar/config/have_png.h
 echo "hdefs[\"HAVE_PNG\"] = nil" >>configure.lua
+echo "#undef HAVE_LIBPNG14" >$BLD/include/agar/config/have_libpng14.h
+echo "hdefs[\"HAVE_LIBPNG14\"] = nil" >>configure.lua
 PNG_CFLAGS=""
 echo "PNG_CFLAGS=$PNG_CFLAGS" >>Makefile.config
(Continue reading)

Agar-SVN | 29 Dec 03:49
Favicon

Agar: r9074 - trunk/gui

Author: vedge
Date: 2011-12-28 21:49:14 -0500 (Wed, 28 Dec 2011)
New Revision: 9074

Modified:
   trunk/gui/AG_Colors.3
Log:
typo

Modified: trunk/gui/AG_Colors.3
===================================================================
--- trunk/gui/AG_Colors.3	2011-12-24 03:02:16 UTC (rev 9073)
+++ trunk/gui/AG_Colors.3	2011-12-29 02:49:14 UTC (rev 9074)
@@ -138,7 +138,7 @@
 .Sh EXAMPLES
 The following code fragment sets the window background color to black:
 .Bd -literal -offset indent
-AG_ColorSetRGB(WINDOW_BG_COLOR, 0,0,0);
+AG_ColorsSetRGB(WINDOW_BG_COLOR, 0,0,0);
 .Ed
 .Sh SEE ALSO
 .Xr AG_Intro 3 ,

Gmane