[squeak-dev] [ANN] Squeak OpenVG bingings

Igor Stasenko siguctua at gmail.com
Sat Aug 1 15:09:09 UTC 2009


Hello guys,

this is a small project to enable a fast & standard 2D vector graphics
API for squeak - OpenVG.

The squeak sources is hosted at:
  http://www.squeaksource.com/OpenVG

  currently there are 4 packages:
    OpenVG-Base   - base development package
    OpenVG-Tests  - package to hold different tests
    OpenVG-Demo - package to hold different demos

    OpenVG-Plugin - VMMaker package sources. Before installing it,
load the OpenVG-Base first.

The platform source files is hosted at code.coogle and can be obtained via svn:
   svn checkout http://openvg-squeak.googlecode.com/svn/trunk/

Platforms:
  - currently plugin available only for win32 platform, sorry. If
there is a brave soul to port the platform source on different
platform , i can add him to developers :)

To evaluate a plugin, install:

    OpenVG-Base,  OpenVG-Tests , OpenVG-Demo packages

next, download the squeak plugin from here:

http://openvg-squeak.googlecode.com/files/OpenVGPlugin.dll

now pick one of an OpenVG engine implementations:

[1]http://www.amanithvg.com/download/  (a closed source , but VERY
fast engine.. and for evaluation only :( )
   it having a SRE and GLE versions. Use GLE version.

[2]download & build own dll from http://sourceforge.net/projects/shivavg/
  or download built by me:
http://openvg-squeak.googlecode.com/files/OpenVGPlugin.dll

There are also other OpenVG implementations available:
  - GinkoVG (software renderer)
  - Kompazz  (seems like authors target it on unix platforms only)

Now, after doing the above you are ready to run some code.
First, tell a plugin, which OpenVG engine to use:

OpenVGAPI loadLibrary: 'yourlibname.dll'

Next, init the context:

OpenVGAPI initContext

Next, run some test:

VGUTests new display

Next run a tiger demo:

VGTigerDemo runDemo

have fun!


P.S. at the moment, the OpenVG API coverage is not complete (no
VGImage yet). So, you can play with paths/paints only.

-- 
Best regards,
Igor Stasenko AKA sig.



More information about the Squeak-dev mailing list