**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
-** Copyright (c) 2007 Chris Moore
+** Copyright (c) 2007, 2008 Chris Moore
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
Plant::Plant():
+ offset(0,0),
split_angle(Angle::deg(10)),
gravity(0,-0.1),
velocity(0.3),
needs_sync_=true;
return true;
}
+ IMPORT(offset);
IMPORT_PLUS(split_angle,needs_sync_=true);
IMPORT_PLUS(gravity,needs_sync_=true);
IMPORT_PLUS(gradient,needs_sync_=true);
if(param=="seed")
return random.get_seed();
EXPORT(bline);
+ EXPORT(offset);
EXPORT(split_angle);
EXPORT(gravity);
EXPORT(velocity);
ret.push_back(ParamDesc("bline")
.set_local_name(_("Vertices"))
.set_description(_("A list of BLine Points"))
- //.set_origin("offset")
- //.set_scalar("width")
+ .set_origin("offset")
+ .set_hint("width")
+ );
+
+ ret.push_back(ParamDesc("offset")
+ .set_local_name(_("Offset"))
);
ret.push_back(ParamDesc("gradient")
dest_surface.set_wh(surface->get_w(),surface->get_h());
dest_surface.clear();
- const Point tl(renddesc.get_tl());
- const Point br(renddesc.get_br());
+ const Point tl(renddesc.get_tl()-offset);
+ const Point br(renddesc.get_br()-offset);
const int w(renddesc.get_w());
const int h(renddesc.get_h());