A Haskell binding for the OpenVG vector graphics API version
1.0.1, specifically the ShivaVG-0.2.1 implementation.

This version (0.5.0) is NOT compatible with the Haskell Platform
(2009.2.0.2) - it uses the split OpenGL packages (RAW, StateVar,
etc.).

** WARNING - major changes to previous version. Also
significant changes likely in next revision. **.

Changelog
0.4.0 to 0.5.0

Significantly reworked. Changed to use OpenVGRaw.

3.0 to 0.4.0

LinearGradient type changed to be Vector4 VGfloat.

RadialGradient changed to (Vector4 VGfloat, VGfloat).

Removed Marshal and Unmarshal type classes, marshallBool and
unmarshalBool moved out of the BasicTypes module.

Type change for colorRampStops.

Name change - maxStops changed to maxColorRampStops.

PathType(..) changed to PathAbsRel(..).

Substantial changes to Haddock docs.

Error handling in VGU redone - the original code in
ErrorsInternal was taken wholesale from Sven Panne's
OpenGL binding to help me bootstrap the OpenVG binding.
Regrettably I forgot to replace it or attribute it -
I've now replaced it. Sincere apologies to Sven Panne.

Maintainer's Corner

Readme for OpenVG-0.5.0

Haskell bindings to ShivaVG (OpenVG implementation).
Haskell OpenVG 0.1 binds to ShivaVG-0.2.0
Haskell OpenVG 0.2 binds to ShivaVG-0.2.1
Haskell OpenVG 0.2.1 binds to ShivaVG-0.2.1
Haskell OpenVG 0.3.0 binds to ShiaVG-0.2.1
(thanks to Stefan Kirsten for the patches).
Haskell OpenVG 0.4.0 binds to ShivaVG-0.2.1
I've tested the bindings on both Windows XP (MinGW/Msys)
and MacOSX Leopard.
On MacOSX both the 0.2 and 0.1 bindings seem work on
their respective libraries.
On Windows the version 0.4.0 bindings now work, though please
make sure your Haskell OpenGL binding works first before trying
the OpenVG binding.
OTHER PROBLEMS:
MacOSX - runhaskell / GHCi freeze the shell when you try to run
the example TestVgu.hs. You will have to compile it first.
Windows - running the test through GHCi kills the GHCi session
when you close the display window. Its better to run through
runhaskell.
Shiva-VG (the C Library) should install quite easily on MacOSX -
I installed it with the usual `configure`, `make` % `make install`.
I would imagine Linux is easy too. Windows isn't at all easy - but
there are instructions in the file `InstallWindows.txt`.
On all platforms you will need OpenGL and GLUT and the Haskell
bindings to OpenGL and GLUT installed and working.