ileben / ShivaVG

OpenGL based ANSI C implementation of the OpenVG standard.
GNU Lesser General Public License v2.1
131 stars 34 forks source link

ShivaVG

See AUTHORS for the list of contributors

ShivaVG is an open-source LGPL ANSI C implementation of the Khronos Group OpenVG specification.

I. BUILD II. TESTING III. IMPLEMENTATION STATUS IV. EXTENSIONS

I. BUILD

II. TESTING

There is no real testing suite yet. The example programs are there just to play with what the implementation can currently do, but can hardly provide any proper validation, since no reference images are provided. Here is a description of each example program and what features it highlights:

III. IMPLEMENTATION STATUS

Khronos states in the OpenVG specification, that the contexts for all their client APIs are expected to be created via the EGL API. Since EGL to use with ShivaVG has not been implemented yet, there is a set of extension functions provided for the task of creating, maintaining and destroying the OpenVG context. (See next section EXTENSIONS for details.)

What follows is a description of which functions or to what extent a certain function has been implemented. When a function is marked as PARTIALLY implemented, the TODO file or the comments in the code itself would provide further clues.

vgGetError ............................ FULLY implemented vgFlush ............................... FULLY implemented vgFinish .............................. FULLY implemented

vgSet ................................. FULLY implemented vgSeti ................................ FULLY implemented vgSetfv ............................... FULLY implemented vgSetiv ............................... FULLY implemented vgGetf ................................ FULLY implemented vgGeti ................................ FULLY implemented vgGetVectorSize ....................... FULLY implemented vgGetfv ............................... FULLY implemented vgGetiv ............................... FULLY implemented vgSetParameterf ....................... FULLY implemented vgSetParameteri ....................... FULLY implemented vgSetParameterfv ...................... FULLY implemented vgSetParameteriv ...................... FULLY implemented vgGetParameterf ....................... FULLY implemented vgGetParameteri ....................... FULLY implemented vgGetParameterVectorSize............... FULLY implemented vgGetParameterfv ...................... FULLY implemented vgGetParameteriv ...................... FULLY implemented

vgLoadIdentity ........................ FULLY implemented vgLoadMatrix .......................... FULLY implemented vgGetMatrix ........................... FULLY implemented vgMultMatrix .......................... FULLY implemented vgTranslate ........................... FULLY implemented vgScale ............................... FULLY implemented vgShear ............................... FULLY implemented vgRotate .............................. FULLY implemented

vgMask ................................ NOT implemented vgClear ............................... FULLY implemented

vgCreatePath .......................... FULLY implemented vgClearPath ........................... FULLY implemented vgDestroyPath ......................... FULLY implemented vgRemovePathCapabilities .............. FULLY implemented vgGetPathCapabilities ................. FULLY implemented vgAppendPath .......................... FULLY implemented vgAppendPathData ...................... FULLY implemented vgModifyPathCoords .................... FULLY implemented vgTransformPath ....................... FULLY implemented vgInterpolatePath ..................... FULLY implemented vgPathLength .......................... NOT implemented vgPointAlongPath ...................... NOT implemented vgPathBounds .......................... FULLY implemented vgPathTransformedBounds ............... FULLY implemented vgDrawPath ............................ PARTIALLY implemented

vgCreatePaint ......................... FULLY implemented vgDestroyPaint ........................ FULLY implemented vgSetPaint ............................ FULLY implemented vgGetPaint ............................ FULLY implemented vgSetColor ............................ FULLY implemented vgGetColor ............................ FULLY implemented vgPaintPattern ........................ FULLY implemented

vgCreateImage ......................... PARTIALLY implemented vgDestroyImage ........................ FULLY implemented vgClearImage .......................... FULLY implemented vgImageSubData ........................ PARTIALLY implemented vgGetImageSubData ..................... PARTIALLY implemented vgChildImage .......................... NOT implemented vgGetParent ........................... NOT implemented vgCopyImage ........................... FULLY implemented vgDrawImage ........................... PARTIALLY implemented vgSetPixels ........................... FULLY implemented vgWritePixels ......................... FULLY implemented vgGetPixels ........................... FULLY implemented vgReadPixels .......................... FULLY implemented vgCopyPixels .......................... FULLY implemented

vgColorMatrix ......................... NOT implemented vgConvolve ............................ NOT implemented vgSeparableConvolve ................... NOT implemented vgGaussianBlur ........................ NOT implemented vgLookup .............................. NOT implemented vgLookupSingle ........................ NOT implemented

vgHardwareQuery ....................... NOT implemented

vgGetString ........................... FULLY implemented

vguLine ............................... FULLY implemented vguPolygon ............................ FULLY implemented vguRect ............................... FULLY implemented vguRoundRect .......................... FULLY implemented vguEllipse ............................ FULLY implemented vguArc ................................ FULLY implemented vguComputeWarpQuadToSquare ............ NOT implemented vguComputeWarpSquareToQuad ............ NOT implemented vguComputeWarpQuadToQuad .............. NOT implemented

IV. EXTENSIONS

There are three extensions to the API that manipulate the OpenVG context as a temporary replacement for EGL:

VGboolean vgCreateContextSH(VGint width, VGint height)

Creates an OpenVG context on top of an existing OpenGL context that should have been manually initialized by the user of the library. Width and height specify the size of the rendering surface. No multi-threading support has been implemented yet. The context is created once per process.

void vgResizeSurfaceSH(VGint width, VGint height)

Should be called whenever the size of the surface changes (e.g. the owner window of the OpenGL context is resized).

void vgDestroyContextSH()

Destroys the OpenVG context associated with the calling process.