Sunday, August 02, 2009

OpenVG - vector graphics for Squeak and Pharo

You want to use vector graphics from Smalltalk? Igor Stasenko
announced
the availability of OpenVG for Squeak and Pharo.

How to use it:
- download the pharo Win32 installer and run it
- in the monticello browser (World menu -> Monticello Browser -> Repository) add http://www.squeaksource.com/OpenVG as HTTP repository and load OpenVG-Base, OpenVG-Tests and OpenVG-Demo

- download the plugin (OpenVGPlugin.dll) and save it in the virtual machine/installation directory
- download the library for the engine to use (for instance libOpenVGSH.dll for the ShivaVG OpenVG engine) and save it in the virtual machine/installation directory

Now you can evaluate:

OpenVGAPI loadLibrary: 'libOpenVGSH.dll'.
OpenVGAPI initContext.

"Next, run some tests"
VGUTests new display.

"Next run a tiger demo"
VGTigerDemo runDemo

No comments:

Post a Comment