Agar-SVN | 2 Feb 2011 11:01
Favicon

Agar: r8930 - trunk/gui

Author: vedge
Date: 2011-02-02 05:01:08 -0500 (Wed, 02 Feb 2011)
New Revision: 8930

Added:
   trunk/gui/AG_Anim.3
Log:
document AG_Anim interface.

Added: trunk/gui/AG_Anim.3
===================================================================
--- trunk/gui/AG_Anim.3	                        (rev 0)
+++ trunk/gui/AG_Anim.3	2011-02-02 10:01:08 UTC (rev 8930)
 <at>  <at>  -0,0 +1,263  <at>  <at> 
+.\" Copyright (c) 2010 Hypertriton, Inc. <http://hypertriton.com/>
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in the
+.\"    documentation and/or other materials provided with the distribution.
+.\" 
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
(Continue reading)

Agar-SVN | 2 Feb 2011 11:01
Favicon

Agar: r8931 - trunk/gui

Author: vedge
Date: 2011-02-02 05:01:55 -0500 (Wed, 02 Feb 2011)
New Revision: 8931

Modified:
   trunk/gui/anim.c
   trunk/gui/anim.h
Log:
- implement AG_AnimFrameToSurface().
- add AG_AnimStdRGB(), AG_AnimStdRGBA().

Modified: trunk/gui/anim.c
===================================================================
--- trunk/gui/anim.c	2011-02-02 10:01:08 UTC (rev 8930)
+++ trunk/gui/anim.c	2011-02-02 10:01:55 UTC (rev 8931)
 <at>  <at>  -266,3 +266,30  <at>  <at> 
 	memcpy(a->pixels[a->n], su->pixels, su->h*su->pitch);
 	return (a->n++);
 }
+
+/* Return a new surface from a given frame#. */
+AG_Surface *
+AG_AnimFrameToSurface(const AG_Anim *a, int f)
+{
+	AG_Surface *su;
+
+	if (f < 0 || f >= a->n) {
+		AG_SetError("No such frame#");
+		return (NULL);
+	}
(Continue reading)

Agar-SVN | 2 Feb 2011 11:02
Favicon

Agar: r8932 - trunk/gui

Author: vedge
Date: 2011-02-02 05:02:13 -0500 (Wed, 02 Feb 2011)
New Revision: 8932

Modified:
   trunk/gui/AG_Surface.3
Log:
PixelFormat is const in AG_SurfaceNew().

Modified: trunk/gui/AG_Surface.3
===================================================================
--- trunk/gui/AG_Surface.3	2011-02-02 10:01:55 UTC (rev 8931)
+++ trunk/gui/AG_Surface.3	2011-02-02 10:02:13 UTC (rev 8932)
 <at>  <at>  -57,7 +57,7  <at>  <at> 
 .Sh INITIALIZATION
 .nr nS 1
 .Ft "AG_Surface *"
-.Fn AG_SurfaceNew "enum ag_surface_type type" "Uint w" "Uint h" "AG_PixelFormat *fmt" "Uint flags"
+.Fn AG_SurfaceNew "enum ag_surface_type type" "Uint w" "Uint h" "const AG_PixelFormat *fmt" "Uint flags"
 .Pp
 .Ft "AG_Surface *"
 .Fn AG_SurfaceEmpty "void"
 <at>  <at>  -610,8 +610,8  <at>  <at> 
 .El
 .Sh SEE ALSO
 .Xr AG_Intro 3 ,
-.Xr AG_Rect 3 ,
-.Xr AG_Widget 3
+.Xr AG_Anim 3 ,
+.Xr AG_Rect 3
(Continue reading)

Agar-SVN | 2 Feb 2011 11:02
Favicon

Agar: r8933 - trunk/gui

Author: vedge
Date: 2011-02-02 05:02:56 -0500 (Wed, 02 Feb 2011)
New Revision: 8933

Modified:
   trunk/gui/surface.c
   trunk/gui/surface.h
Log:
declare pixel pointer const in AG_SurfaceFromPixels*()

Modified: trunk/gui/surface.c
===================================================================
--- trunk/gui/surface.c	2011-02-02 10:02:13 UTC (rev 8932)
+++ trunk/gui/surface.c	2011-02-02 10:02:56 UTC (rev 8933)
 <at>  <at>  -323,7 +323,7  <at>  <at> 

 /* Create a new surface from pixel data in the specified packed RGB format. */
 AG_Surface *
-AG_SurfaceFromPixelsRGB(void *pixels, Uint w, Uint h, int bpp,
+AG_SurfaceFromPixelsRGB(const void *pixels, Uint w, Uint h, int bpp,
     Uint32 Rmask, Uint32 Gmask, Uint32 Bmask)
 {
 	AG_PixelFormat *pf;
 <at>  <at>  -343,7 +343,7  <at>  <at> 
  * The SRCALPHA flag is set implicitely.
  */
 AG_Surface *
-AG_SurfaceFromPixelsRGBA(void *pixels, Uint w, Uint h, int bpp,
+AG_SurfaceFromPixelsRGBA(const void *pixels, Uint w, Uint h, int bpp,
     Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask)
(Continue reading)

Agar-SVN | 2 Feb 2011 11:03
Favicon

Agar: r8934 - trunk/core

Author: vedge
Date: 2011-02-02 05:03:05 -0500 (Wed, 02 Feb 2011)
New Revision: 8934

Modified:
   trunk/core/AG_Intro.3
Log:
+ AG_Anim(3)

Modified: trunk/core/AG_Intro.3
===================================================================
--- trunk/core/AG_Intro.3	2011-02-02 10:02:56 UTC (rev 8933)
+++ trunk/core/AG_Intro.3	2011-02-02 10:03:05 UTC (rev 8934)
 <at>  <at>  -165,6 +165,8  <at>  <at> 
 .Sq agar-config --libs .
 .Pp
 .Bl -tag -width "AG_GuiDebugger(3) " -compact
+.It Xr AG_Anim 3
+Animated graphics surfaces.
 .It Xr AG_BlendFn 3
 Pixel blending functions.
 .It Xr AG_Color 3
Agar-SVN | 2 Feb 2011 11:03
Favicon

Agar: r8935 - trunk/tools/agarpaint

Author: vedge
Date: 2011-02-02 05:03:15 -0500 (Wed, 02 Feb 2011)
New Revision: 8935

Modified:
   trunk/tools/agarpaint/agarpaint.c
Log:
removed config/release.h

Modified: trunk/tools/agarpaint/agarpaint.c
===================================================================
--- trunk/tools/agarpaint/agarpaint.c	2011-02-02 10:03:05 UTC (rev 8934)
+++ trunk/tools/agarpaint/agarpaint.c	2011-02-02 10:03:15 UTC (rev 8935)
 <at>  <at>  -31,7 +31,6  <at>  <at> 
 #include "config/sharedir.h"
 #include "config/have_agar_dev.h"
 #include "config/version.h"
-#include "config/release.h"
 #include "config/enable_nls.h"
 #include "config/localedir.h"
Agar-SVN | 2 Feb 2011 11:03
Favicon

Agar: r8936 - trunk/ChangeLogs

Author: vedge
Date: 2011-02-02 05:03:28 -0500 (Wed, 02 Feb 2011)
New Revision: 8936

Modified:
   trunk/ChangeLogs/Release-1.4.1.txt
Log:
update

Modified: trunk/ChangeLogs/Release-1.4.1.txt
===================================================================
--- trunk/ChangeLogs/Release-1.4.1.txt	2011-02-02 10:03:15 UTC (rev 8935)
+++ trunk/ChangeLogs/Release-1.4.1.txt	2011-02-02 10:03:28 UTC (rev 8936)
 <at>  <at>  -6,6 +6,7  <at>  <at> 
 particular order. A wikified version of this list is available at:
 http://wiki.libagar.org/wiki/Agar-1.4.1.

+- Port to Xbox (thanks Michael J. Wood!).
 - Widget code can now use the AG_Redraw() and AG_RedrawOn*() interfaces to
   trigger rendering. The generic event loop uses this information to avoid
   unnecessary video updates -- custom event loops should be modified to
 <at>  <at>  -22,13 +23,17  <at>  <at> 
   scheduled in reverse order; thanks to Jakob Reschke for the fix!
 - Fixed UTF8 conversion bug with 3-byte sequences; thanks Jerry Huang!
 - Fixed coordinates offset for popup menus under single-window drivers.
-- Added AG_InitGraphics(3) as a separate manual page.
+- Numerous improvements to the API reference. Added AG_DriverGLX(3),
+  AG_DriverWGL(3), AG_DriverSDLFB(3), AG_DriverSDLGL(3), AG_DriverMw(3)
+  and AG_DriverSw(3), AG_InitGraphics(3) manual pages.
 - Fixed crash bug with AG_TEXTBOX_STATIC and AG_EDITABLE_STATIC.
(Continue reading)

Agar-SVN | 2 Feb 2011 11:08
Favicon

Agar: r7 - /

Author: vedge
Date: 2011-02-02 05:08:11 -0500 (Wed, 02 Feb 2011)
New Revision: 7

Modified:
   configure.in
Log:
add --with-foo[=PREFIX]

Modified: configure.in
===================================================================
--- configure.in	2011-02-02 10:07:48 UTC (rev 6)
+++ configure.in	2011-02-02 10:08:11 UTC (rev 7)
 <at>  <at>  -6,6 +6,10  <at>  <at> 

 REGISTER_SECTION("Options specific to Vislak:")
 REGISTER("--enable-warnings",	"Suggested compiler warnings [default: no]")
+REGISTER("--with-agar[=PREFIX]", "Specify Agar location [default: auto-detect]")
+REGISTER("--with-jpeg[=PREFIX]", "Specify libjpeg location [default: auto-detect]")
+REGISTER("--with-alsa[=PREFIX]", "Specify ALSA location [default: auto-detect]")
+REGISTER("--with-sndfile[=PREFIX]", "Specify libsndfile location [default: auto-detect]")

 C_DEFINE(_VS_INTERNAL)
 C_DEFINE(_BSD_SOURCE)
 <at>  <at>  -29,11 +33,11  <at>  <at> 
 echo "* PortAudio configured successfully"

 REQUIRE(cc)
-REQUIRE(agar, 1.4.1)
-REQUIRE(agar-math, 1.4.1)
(Continue reading)

Agar-SVN | 9 Feb 2011 09:11
Favicon

Agar: r8937 - trunk/math

Author: vedge
Date: 2011-02-09 03:11:31 -0500 (Wed, 09 Feb 2011)
New Revision: 8937

Modified:
   trunk/math/m_gui.c
Log:
AG_NumericalNew() -> AG_NumericalNewS()

Modified: trunk/math/m_gui.c
===================================================================
--- trunk/math/m_gui.c	2011-02-02 10:03:28 UTC (rev 8936)
+++ trunk/math/m_gui.c	2011-02-09 08:11:31 UTC (rev 8937)
 <at>  <at>  -70,7 +70,7  <at>  <at> 
 	AG_LabelNewS(box, 0, label);

 	for (i = 0; i < 3; i++)
-		n[i] = AG_NumericalNew(box, 0, NULL, NULL);
+		n[i] = AG_NumericalNewS(box, 0, NULL, NULL);

 	M_BindRealMp(n[0], "value", &pv->x, lock);
 	M_BindRealMp(n[1], "value", &pv->y, lock);
 <at>  <at>  -172,7 +172,7  <at>  <at> 
 		hbox = AG_BoxNew(vbox, AG_BOX_HORIZ,
 		    AG_BOX_HOMOGENOUS|AG_BOX_HFILL);
 		for (i = 0; i < 4; i++) {
-			n = AG_NumericalNew(hbox, 0, NULL, NULL);
+			n = AG_NumericalNewS(hbox, 0, NULL, NULL);
 			M_BindRealMp(n, "value", &T->m[i][j], lock);
 			AG_NumericalSetIncrement(n, 0.1);
(Continue reading)

Agar-SVN | 13 Feb 2011 12:58
Favicon

Agar: r8938 - trunk/gui

Author: vedge
Date: 2011-02-13 06:58:57 -0500 (Sun, 13 Feb 2011)
New Revision: 8938

Modified:
   trunk/gui/load_jpg.c
Log:
typo

Modified: trunk/gui/load_jpg.c
===================================================================
--- trunk/gui/load_jpg.c	2011-02-09 08:11:31 UTC (rev 8937)
+++ trunk/gui/load_jpg.c	2011-02-13 11:58:57 UTC (rev 8938)
 <at>  <at>  -265,7 +265,7  <at>  <at> 
 		su = AG_SurfaceRGB(cinfo.output_width, cinfo.output_height,
 		    24, 0,
 #if AG_BYTEORDER == AG_BIG_ENDIAN
-		    0xff0000, 0x00ff00, 0x0000ff,
+		    0xff0000, 0x00ff00, 0x0000ff
 #else
 		    0x0000ff, 0x00ff00, 0xff0000
 #endif

Gmane