SD wrote:
Hi,
Noo, i use the aggdrawer :)
I see.
i only want to compile wxArt2D with wxWidgets 2.9 without errors.
Cause the complexity of wxArt2D i will take a look at wxGraphicsContext.
Oke, but if you only use Aggdrawer, you don't need all the rest.
general and artbase module should be enough.
Are there any reasons not use wxGraphicsContext? :) i never worked with it.
I did, and i planned to implement a a2dDrawer2D based on it.
But it is pure vector based, and can't draw anything in pixels.
So drawing a curve in vector coordinates, and sized in vector coordinates is
fine. But if you want to draw maskers on a curve which need to be X pixels in
size, you have a problem. Handles on objects also need to be in pixels. So there
are several situations that pixel drawing needs to be combined with vector
drawing. To be able to do that, one first needs to transform to absolute world
coordinates (assuming an object has its own matrix, to place itself relative to
the canvas defined in world coordinates.) And next from world coordinates to
screen/pixel coordinates. Those wxGraphicsContext using Cairo and Gdiplus don't
do that. They directly transform from any coordinate system to pixels. And
therefore its impossible to draw a circle in pixels at a specific world coordinate.
wxArt2D its drawing context does it in two steps, and allows to draw pixels size
things on top of the vector transformed drawing of polygons etc.
Next to that you can not switch context on the fly with wxGraphicsContext.
The Brush and Pens are defined during compilation, and are directly coupled to
the underlying framework/rendering engine. So if you wanted to have a
wxGraphicsContext based on Agg/Antigrain, that wouldf not be to hard to
implement. But you have to choose it at compile time, and you can not switch to
the GdsiPlus based wxGraphicsContext on the fly.
Search for this in the wxusers list archive:
Canvas on wxGraphicsContext
http://lists.wxwidgets.org/pipermail/wx-users/2008-June/108415.html
i decided to first implement GdiPlusDrawer directly on Gdiplus and not via
wxGraphicsContext. Although not impossible, it is like an extra layer in
between, and has the problems above.
In the future i will do it, in order to use cairo on linux.
I use the lib for measuring. Length of a line, angle between two lines etc.
That is makes tools like in wxArt2d, so in the end you are better of here.
Anyway use whatever is best, but be aware to not reinvent the wheel (often
happens).
Klaas
-----Ursprüngliche Nachricht-----
Von: Klaas Holwerda [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 3. November 2008 14:34
An: wxart2d-users_dev@lists.sourceforge.net
Betreff: Re: [Wxart2d-users_dev] WG: wxWidgets 2.9 and
wxArt2D (gdiplusdrawer) issues
Hi,
I applied it.
Hope it works.
Klaas
BTW are you only using gdiplusdrawer, without a canvas?
Wonder why, and especially why not wxWidgets its
wxGraphicsContext /wxGDIPlusContext?
I can think of some reason, but like to be sure :-)
SD wrote:
gdiplusdrawer now can compiled without errors.
Unfortunately, I have overlooked (however it happend) many
errors when
compiling wxArt2D with wxWidgets 2.9 . I have now corrected
all errors and
created a patch. Previously, I updated wxArt2D now :) .
Check it out.
--
Unclassified
--------------------------------------------------------------
----------------------------------------------
Disclaimer:
If you are not the intended recipient of this email, please
notify the sender and delete it.
Any unauthorized copying, disclosure or distribution of this
email or its attachment(s) is forbidden.
Thales Nederland BV will not accept liability for any damage
caused by this email or its attachment(s).
Thales Nederland BV is seated in Hengelo and is registered at
the Chamber of Commerce under number 06061578.
--------------------------------------------------------------
----------------------------------------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Wxart2d-users_dev mailing list
Wxart2d-users_dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev
--
Unclassified
------------------------------------------------------------------------------------------------------------
Disclaimer:
If you are not the intended recipient of this email, please notify the sender and delete it.
Any unauthorized copying, disclosure or distribution of this email or its attachment(s) is forbidden.
Thales Nederland BV will not accept liability for any damage caused by this email or its attachment(s).
Thales Nederland BV is seated in Hengelo and is registered at the Chamber of Commerce under number 06061578.
------------------------------------------------------------------------------------------------------------
begin:vcard
fn:Klaas Holwerda
n:Holwerda;Klaas
note:Unclassified
version:2.1
end:vcard
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Wxart2d-users_dev mailing list
Wxart2d-users_dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev