unity 2.6 pro.
I would like to compile in the agg-sharp libraries
http://code.google.com/p/agg-sharp/
for use in a webplayer based project. Reason being the 2d antialised polygon drawing into memory images mainly.
Anyhow the code will not compile it just comes up with a lot of errors like this.
Assets/agg/IPixelFormat.cs(50,16): error CS0227: Unsafe code requires the `unsafe’ command line option to be specified
Is it possible to use this library?
Many thanks
Gary
OK I guess there is no way to get this code compiling as
I found from search that webplayer will not allow these unsafe functions involving pointers. please correct me if this is wrong.
I have now located the SVG alpha code in the wiki and will investigate that instead, it might be good enough for purpose.
Correct me if I’m wrong, you want to render SVG?
There’s already a script @ http://www.unifycommunity.com/wiki/index.php?title=SVG
All I want to do is draw nice antialised polygons with a 2d api to create regions for a 2d image. The 3D mesh + triangulation route is no good as I find unity antialising varies too much between platforms.
I found that System.Drawing is not available and the graphics library I found initially uses pointers so is I think banned from use in webplayer app. So far a frustrating journey but I spotted the SVG library which low down does appear to be able to draw Polys.
Will have a play
Many thanks
Gary