Data Types
Primitive data types [3.2]
| Data type name | Size | Values range | 
|---|
| VGbyte | 1 byte | [ -128, 127 ] | 
| VGubyte | 1 byte | [ 0, 255 ] | 
| VGshort | 2 byte | [ -32768, 32767 ] | 
| VGint | 4 byte | [ -(2^31), 2^31 - 1 ] | 
| VGuint | 4 byte | [ 0, 2^32 - 1 ] | 
| VGfloat | 4 byte | IEEE 754 Standard | 
| VGboolean | 4 byte | [ VG_FALSE(0), VG_TRUE(1) ] | 
| VGbitfiled | 4 byte | [ 0, 2^32 - 1 ] | 
Handle-based data types [3.6]
Images, paint objects, and paths are accessed using opaque handles. Handles employ reference count semantics: if a handle is in use, a request to destroy it prevents the handle from being used further by the application, but allows it to continue to be used internally by the OpenVG implementation until it is no longer referenced. VG_INVALID_HANDLE (defined as (VGHandle)0) represents an invalid VGHandle that is used as an error return value from functions that return a VGHandle.
| Data type name | Description | 
|---|
| VGHandle | VGuint | 
| VGPath | a VGHandlereferencing path data | 
| VGImage | a VGHandlereferencing image data | 
| VGMaskLayer | a VGHandlereferencing mask data | 
| VGFont | a VGHandlereferencing path data | 
| VGPaint | a VGHandlereferencing paint specification |