ajstarks / openvg

Tools for exploring OpenVG
Other
414 stars 85 forks source link

Window-like mode and outlined (non-filled) shapes. #36

Closed paeryn closed 8 years ago

paeryn commented 8 years ago

Changed from forced fullscreen to allowing user to set size and position of OpenVG window. Size currently remains fixed, but position can be changed at any time. Also opacity of the window can be changed at any time.

Added outline versions of the shapes - better than requiring the fill to be set to a zero-alpha colour. This could also be done by changing the original functions to need the FILL / STROKE flags but I tried to preserve the original function prototypes.

Changed newpath() to allocate VG_CAPABILITIES_APPEND_TO paths since the other capabilities aren't used at the moment and gives the driver chance to optimise.

Adjusted the MAXFONTPATH, as it was it was segfaulting due to trying to clear 500 Glyphs rather than the 256 declared in fontinfo.h

I've not updated the Go part as I'm not familiar at the moment with Go and I didn't want to mess it up.

ajstarks commented 8 years ago

Looks interesting. Hope to explore later this week. Thanks for the opengl optimizations.