openvg.h File Reference

Link against: libopenvg.lib


#include <vg/khronos_types.h>

Go to the source code of this file.


Defines

#define OPENVG_VERSION_1_0   1
#define VG_MAXSHORT   ((VGshort)((~((unsigned)0)) >> 1))
#define VG_MAXINT   ((VGint)((~((unsigned)0)) >> 1))
#define VG_INVALID_HANDLE   ((VGHandle)0)
#define VG_PATH_FORMAT_STANDARD   0
#define VG_API_CALL   extern

Typedefs

typedef khronos_float VGfloat
typedef khronos_int8_t VGbyte
typedef khronos_uint8_t VGubyte
typedef khronos_int16_t VGshort
typedef khronos_int32_t VGint
typedef khronos_uint32_t VGuint
typedef khronos_uint32_t VGbitfield
typedef VGuint VGHandle
typedef VGHandle VGPath
typedef VGHandle VGPaint
typedef VGHandle VGImage

Enumerations

enum  VGboolean { VG_FALSE = 0, VG_TRUE = 1 }
enum  VGErrorCode {
  VG_NO_ERROR = 0, VG_BAD_HANDLE_ERROR = 0x1000, VG_ILLEGAL_ARGUMENT_ERROR = 0x1001, VG_OUT_OF_MEMORY_ERROR = 0x1002,
  VG_PATH_CAPABILITY_ERROR = 0x1003, VG_UNSUPPORTED_IMAGE_FORMAT_ERROR = 0x1004, VG_UNSUPPORTED_PATH_FORMAT_ERROR = 0x1005, VG_IMAGE_IN_USE_ERROR = 0x1006,
  VG_NO_CONTEXT_ERROR = 0x1007
}
enum  VGParamType {
  VG_MATRIX_MODE = 0x1100, VG_FILL_RULE = 0x1101, VG_IMAGE_QUALITY = 0x1102, VG_RENDERING_QUALITY = 0x1103,
  VG_BLEND_MODE = 0x1104, VG_IMAGE_MODE = 0x1105, VG_SCISSOR_RECTS = 0x1106, VG_STROKE_LINE_WIDTH = 0x1110,
  VG_STROKE_CAP_STYLE = 0x1111, VG_STROKE_JOIN_STYLE = 0x1112, VG_STROKE_MITER_LIMIT = 0x1113, VG_STROKE_DASH_PATTERN = 0x1114,
  VG_STROKE_DASH_PHASE = 0x1115, VG_STROKE_DASH_PHASE_RESET = 0x1116, VG_TILE_FILL_COLOR = 0x1120, VG_CLEAR_COLOR = 0x1121,
  VG_MASKING = 0x1130, VG_SCISSORING = 0x1131, VG_PIXEL_LAYOUT = 0x1140, VG_SCREEN_LAYOUT = 0x1141,
  VG_FILTER_FORMAT_LINEAR = 0x1150, VG_FILTER_FORMAT_PREMULTIPLIED = 0x1151, VG_FILTER_CHANNEL_MASK = 0x1152, VG_MAX_SCISSOR_RECTS = 0x1160,
  VG_MAX_DASH_COUNT = 0x1161, VG_MAX_KERNEL_SIZE = 0x1162, VG_MAX_SEPARABLE_KERNEL_SIZE = 0x1163, VG_MAX_COLOR_RAMP_STOPS = 0x1164,
  VG_MAX_IMAGE_WIDTH = 0x1165, VG_MAX_IMAGE_HEIGHT = 0x1166, VG_MAX_IMAGE_PIXELS = 0x1167, VG_MAX_IMAGE_BYTES = 0x1168,
  VG_MAX_FLOAT = 0x1169, VG_MAX_GAUSSIAN_STD_DEVIATION = 0x116A
}
enum  VGRenderingQuality { VG_RENDERING_QUALITY_NONANTIALIASED = 0x1200, VG_RENDERING_QUALITY_FASTER = 0x1201, VG_RENDERING_QUALITY_BETTER = 0x1202 }
enum  VGPixelLayout {
  VG_PIXEL_LAYOUT_UNKNOWN = 0x1300, VG_PIXEL_LAYOUT_RGB_VERTICAL = 0x1301, VG_PIXEL_LAYOUT_BGR_VERTICAL = 0x1302, VG_PIXEL_LAYOUT_RGB_HORIZONTAL = 0x1303,
  VG_PIXEL_LAYOUT_BGR_HORIZONTAL = 0x1304
}
enum  VGMatrixMode { VG_MATRIX_PATH_USER_TO_SURFACE = 0x1400, VG_MATRIX_IMAGE_USER_TO_SURFACE = 0x1401, VG_MATRIX_FILL_PAINT_TO_USER = 0x1402, VG_MATRIX_STROKE_PAINT_TO_USER = 0x1403 }
enum  VGMaskOperation {
  VG_CLEAR_MASK = 0x1500, VG_FILL_MASK = 0x1501, VG_SET_MASK = 0x1502, VG_UNION_MASK = 0x1503,
  VG_INTERSECT_MASK = 0x1504, VG_SUBTRACT_MASK = 0x1505
}
enum  VGPathDatatype { VG_PATH_DATATYPE_S_8 = 0, VG_PATH_DATATYPE_S_16 = 1, VG_PATH_DATATYPE_S_32 = 2, VG_PATH_DATATYPE_F = 3 }
enum  VGPathAbsRel { VG_ABSOLUTE = 0, VG_RELATIVE = 1 }
enum  VGPathSegment {
  VG_CLOSE_PATH = ( 0 << 1), VG_MOVE_TO = ( 1 << 1), VG_LINE_TO = ( 2 << 1), VG_HLINE_TO = ( 3 << 1),
  VG_VLINE_TO = ( 4 << 1), VG_QUAD_TO = ( 5 << 1), VG_CUBIC_TO = ( 6 << 1), VG_SQUAD_TO = ( 7 << 1),
  VG_SCUBIC_TO = ( 8 << 1), VG_SCCWARC_TO = ( 9 << 1), VG_SCWARC_TO = (10 << 1), VG_LCCWARC_TO = (11 << 1),
  VG_LCWARC_TO = (12 << 1)
}
enum  VGPathCommand {
  VG_MOVE_TO_ABS = VG_MOVE_TO | VG_ABSOLUTE, VG_MOVE_TO_REL = VG_MOVE_TO | VG_RELATIVE, VG_LINE_TO_ABS = VG_LINE_TO | VG_ABSOLUTE, VG_LINE_TO_REL = VG_LINE_TO | VG_RELATIVE,
  VG_HLINE_TO_ABS = VG_HLINE_TO | VG_ABSOLUTE, VG_HLINE_TO_REL = VG_HLINE_TO | VG_RELATIVE, VG_VLINE_TO_ABS = VG_VLINE_TO | VG_ABSOLUTE, VG_VLINE_TO_REL = VG_VLINE_TO | VG_RELATIVE,
  VG_QUAD_TO_ABS = VG_QUAD_TO | VG_ABSOLUTE, VG_QUAD_TO_REL = VG_QUAD_TO | VG_RELATIVE, VG_CUBIC_TO_ABS = VG_CUBIC_TO | VG_ABSOLUTE, VG_CUBIC_TO_REL = VG_CUBIC_TO | VG_RELATIVE,
  VG_SQUAD_TO_ABS = VG_SQUAD_TO | VG_ABSOLUTE, VG_SQUAD_TO_REL = VG_SQUAD_TO | VG_RELATIVE, VG_SCUBIC_TO_ABS = VG_SCUBIC_TO | VG_ABSOLUTE, VG_SCUBIC_TO_REL = VG_SCUBIC_TO | VG_RELATIVE,
  VG_SCCWARC_TO_ABS = VG_SCCWARC_TO | VG_ABSOLUTE, VG_SCCWARC_TO_REL = VG_SCCWARC_TO | VG_RELATIVE, VG_SCWARC_TO_ABS = VG_SCWARC_TO | VG_ABSOLUTE, VG_SCWARC_TO_REL = VG_SCWARC_TO | VG_RELATIVE,
  VG_LCCWARC_TO_ABS = VG_LCCWARC_TO | VG_ABSOLUTE, VG_LCCWARC_TO_REL = VG_LCCWARC_TO | VG_RELATIVE, VG_LCWARC_TO_ABS = VG_LCWARC_TO | VG_ABSOLUTE, VG_LCWARC_TO_REL = VG_LCWARC_TO | VG_RELATIVE
}
enum  VGPathCapabilities {
  VG_PATH_CAPABILITY_APPEND_FROM = (1 << 0), VG_PATH_CAPABILITY_APPEND_TO = (1 << 1), VG_PATH_CAPABILITY_MODIFY = (1 << 2), VG_PATH_CAPABILITY_TRANSFORM_FROM = (1 << 3),
  VG_PATH_CAPABILITY_TRANSFORM_TO = (1 << 4), VG_PATH_CAPABILITY_INTERPOLATE_FROM = (1 << 5), VG_PATH_CAPABILITY_INTERPOLATE_TO = (1 << 6), VG_PATH_CAPABILITY_PATH_LENGTH = (1 << 7),
  VG_PATH_CAPABILITY_POINT_ALONG_PATH = (1 << 8), VG_PATH_CAPABILITY_TANGENT_ALONG_PATH = (1 << 9), VG_PATH_CAPABILITY_PATH_BOUNDS = (1 << 10), VG_PATH_CAPABILITY_PATH_TRANSFORMED_BOUNDS = (1 << 11),
  VG_PATH_CAPABILITY_ALL = (1 << 12) - 1
}
enum  VGPathParamType {
  VG_PATH_FORMAT = 0x1600, VG_PATH_DATATYPE = 0x1601, VG_PATH_SCALE = 0x1602, VG_PATH_BIAS = 0x1603,
  VG_PATH_NUM_SEGMENTS = 0x1604, VG_PATH_NUM_COORDS = 0x1605
}
enum  VGCapStyle { VG_CAP_BUTT = 0x1700, VG_CAP_ROUND = 0x1701, VG_CAP_SQUARE = 0x1702 }
enum  VGJoinStyle { VG_JOIN_MITER = 0x1800, VG_JOIN_ROUND = 0x1801, VG_JOIN_BEVEL = 0x1802 }
enum  VGFillRule { VG_EVEN_ODD = 0x1900, VG_NON_ZERO = 0x1901 }
enum  VGPaintMode { VG_STROKE_PATH = (1 << 0), VG_FILL_PATH = (1 << 1) }
enum  VGPaintParamType {
  VG_PAINT_TYPE = 0x1A00, VG_PAINT_COLOR = 0x1A01, VG_PAINT_COLOR_RAMP_SPREAD_MODE = 0x1A02, VG_PAINT_COLOR_RAMP_PREMULTIPLIED = 0x1A07,
  VG_PAINT_COLOR_RAMP_STOPS = 0x1A03, VG_PAINT_LINEAR_GRADIENT = 0x1A04, VG_PAINT_RADIAL_GRADIENT = 0x1A05, VG_PAINT_PATTERN_TILING_MODE = 0x1A06
}
enum  VGPaintType { VG_PAINT_TYPE_COLOR = 0x1B00, VG_PAINT_TYPE_LINEAR_GRADIENT = 0x1B01, VG_PAINT_TYPE_RADIAL_GRADIENT = 0x1B02, VG_PAINT_TYPE_PATTERN = 0x1B03 }
enum  VGColorRampSpreadMode { VG_COLOR_RAMP_SPREAD_PAD = 0x1C00, VG_COLOR_RAMP_SPREAD_REPEAT = 0x1C01, VG_COLOR_RAMP_SPREAD_REFLECT = 0x1C02 }
enum  VGTilingMode { VG_TILE_FILL = 0x1D00, VG_TILE_PAD = 0x1D01, VG_TILE_REPEAT = 0x1D02, VG_TILE_REFLECT = 0x1D03 }
enum  VGImageFormat {
  VG_sRGBX_8888 = 0, VG_sRGBA_8888 = 1, VG_sRGBA_8888_PRE = 2, VG_sRGB_565 = 3,
  VG_sRGBA_5551 = 4, VG_sRGBA_4444 = 5, VG_sL_8 = 6, VG_lRGBX_8888 = 7,
  VG_lRGBA_8888 = 8, VG_lRGBA_8888_PRE = 9, VG_lL_8 = 10, VG_A_8 = 11,
  VG_BW_1 = 12, VG_sXRGB_8888 = 0 | (1 << 6), VG_sARGB_8888 = 1 | (1 << 6), VG_sARGB_8888_PRE = 2 | (1 << 6),
  VG_sARGB_1555 = 4 | (1 << 6), VG_sARGB_4444 = 5 | (1 << 6), VG_lXRGB_8888 = 7 | (1 << 6), VG_lARGB_8888 = 8 | (1 << 6),
  VG_lARGB_8888_PRE = 9 | (1 << 6), VG_sBGRX_8888 = 0 | (1 << 7), VG_sBGRA_8888 = 1 | (1 << 7), VG_sBGRA_8888_PRE = 2 | (1 << 7),
  VG_sBGR_565 = 3 | (1 << 7), VG_sBGRA_5551 = 4 | (1 << 7), VG_sBGRA_4444 = 5 | (1 << 7), VG_lBGRX_8888 = 7 | (1 << 7),
  VG_lBGRA_8888 = 8 | (1 << 7), VG_lBGRA_8888_PRE = 9 | (1 << 7), VG_sXBGR_8888 = 0 | (1 << 6) | (1 << 7), VG_sABGR_8888 = 1 | (1 << 6) | (1 << 7),
  VG_sABGR_8888_PRE = 2 | (1 << 6) | (1 << 7), VG_sABGR_1555 = 4 | (1 << 6) | (1 << 7), VG_sABGR_4444 = 5 | (1 << 6) | (1 << 7), VG_lXBGR_8888 = 7 | (1 << 6) | (1 << 7),
  VG_lABGR_8888 = 8 | (1 << 6) | (1 << 7), VG_lABGR_8888_PRE = 9 | (1 << 6) | (1 << 7)
}
enum  VGImageQuality { VG_IMAGE_QUALITY_NONANTIALIASED = (1 << 0), VG_IMAGE_QUALITY_FASTER = (1 << 1), VG_IMAGE_QUALITY_BETTER = (1 << 2) }
enum  VGImageParamType { VG_IMAGE_FORMAT = 0x1E00, VG_IMAGE_WIDTH = 0x1E01, VG_IMAGE_HEIGHT = 0x1E02 }
enum  VGImageMode { VG_DRAW_IMAGE_NORMAL = 0x1F00, VG_DRAW_IMAGE_MULTIPLY = 0x1F01, VG_DRAW_IMAGE_STENCIL = 0x1F02 }
enum  VGImageChannel { VG_RED = (1 << 3), VG_GREEN = (1 << 2), VG_BLUE = (1 << 1), VG_ALPHA = (1 << 0) }
enum  VGBlendMode {
  VG_BLEND_SRC = 0x2000, VG_BLEND_SRC_OVER = 0x2001, VG_BLEND_DST_OVER = 0x2002, VG_BLEND_SRC_IN = 0x2003,
  VG_BLEND_DST_IN = 0x2004, VG_BLEND_MULTIPLY = 0x2005, VG_BLEND_SCREEN = 0x2006, VG_BLEND_DARKEN = 0x2007,
  VG_BLEND_LIGHTEN = 0x2008, VG_BLEND_ADDITIVE = 0x2009
}
enum  VGHardwareQueryType { VG_IMAGE_FORMAT_QUERY = 0x2100, VG_PATH_DATATYPE_QUERY = 0x2101 }
enum  VGHardwareQueryResult { VG_HARDWARE_ACCELERATED = 0x2200, VG_HARDWARE_UNACCELERATED = 0x2201 }
enum  VGStringID { VG_VENDOR = 0x2300, VG_RENDERER = 0x2301, VG_VERSION = 0x2302, VG_EXTENSIONS = 0x2303 }

Functions

VGErrorCode vgGetError (void)
void vgFlush (void)
void vgFinish (void)
void vgSetf (VGParamType type, VGfloat value)
void vgSeti (VGParamType type, VGint value)
void vgSetfv (VGParamType type, VGint count, const VGfloat *values)
void vgSetiv (VGParamType type, VGint count, const VGint *values)
VGfloat vgGetf (VGParamType type)
VGint vgGeti (VGParamType type)
VGint vgGetVectorSize (VGParamType type)
void vgGetfv (VGParamType type, VGint count, VGfloat *values)
void vgGetiv (VGParamType type, VGint count, VGint *values)
void vgSetParameterf (VGHandle object, VGint paramType, VGfloat value)
void vgSetParameteri (VGHandle object, VGint paramType, VGint value)
void vgSetParameterfv (VGHandle object, VGint paramType, VGint count, const VGfloat *values)
void vgSetParameteriv (VGHandle object, VGint paramType, VGint count, const VGint *values)
VGfloat vgGetParameterf (VGHandle object, VGint paramType)
VGint vgGetParameteri (VGHandle object, VGint paramType)
VGint vgGetParameterVectorSize (VGHandle object, VGint paramType)
void vgGetParameterfv (VGHandle object, VGint paramType, VGint count, VGfloat *values)
void vgGetParameteriv (VGHandle object, VGint paramType, VGint count, VGint *values)
void vgLoadIdentity (void)
void vgLoadMatrix (const VGfloat *m)
void vgGetMatrix (VGfloat *m)
void vgMultMatrix (const VGfloat *m)
void vgTranslate (VGfloat tx, VGfloat ty)
void vgScale (VGfloat sx, VGfloat sy)
void vgShear (VGfloat shx, VGfloat shy)
void vgRotate (VGfloat angle)
void vgMask (VGImage mask, VGMaskOperation operation, VGint x, VGint y, VGint width, VGint height)
void vgClear (VGint x, VGint y, VGint width, VGint height)
VGPath vgCreatePath (VGint pathFormat, VGPathDatatype datatype, VGfloat scale, VGfloat bias, VGint segmentCapacityHint, VGint coordCapacityHint, VGbitfield capabilities)
void vgClearPath (VGPath path, VGbitfield capabilities)
void vgDestroyPath (VGPath path)
void vgRemovePathCapabilities (VGPath path, VGbitfield capabilities)
VGbitfield vgGetPathCapabilities (VGPath path)
void vgAppendPath (VGPath dstPath, VGPath srcPath)
void vgAppendPathData (VGPath dstPath, VGint numSegments, const VGubyte *pathSegments, const void *pathData)
void vgModifyPathCoords (VGPath dstPath, VGint startIndex, VGint numSegments, const void *pathData)
void vgTransformPath (VGPath dstPath, VGPath srcPath)
VGboolean vgInterpolatePath (VGPath dstPath, VGPath startPath, VGPath endPath, VGfloat amount)
VGfloat vgPathLength (VGPath path, VGint startSegment, VGint numSegments)
void vgPointAlongPath (VGPath path, VGint startSegment, VGint numSegments, VGfloat distance, VGfloat *x, VGfloat *y, VGfloat *tangentX, VGfloat *tangentY)
void vgPathBounds (VGPath path, VGfloat *minX, VGfloat *minY, VGfloat *width, VGfloat *height)
void vgPathTransformedBounds (VGPath path, VGfloat *minX, VGfloat *minY, VGfloat *width, VGfloat *height)
void vgDrawPath (VGPath path, VGbitfield paintModes)
VGPaint vgCreatePaint (void)
void vgDestroyPaint (VGPaint paint)
void vgSetPaint (VGPaint paint, VGbitfield paintModes)
VGPaint vgGetPaint (VGPaintMode paintMode)
void vgSetColor (VGPaint paint, VGuint rgba)
VGuint vgGetColor (VGPaint paint)
void vgPaintPattern (VGPaint paint, VGImage pattern)
VGImage vgCreateImage (VGImageFormat format, VGint width, VGint height, VGbitfield allowedQuality)
void vgDestroyImage (VGImage image)
void vgClearImage (VGImage image, VGint x, VGint y, VGint width, VGint height)
void vgImageSubData (VGImage image, const void *data, VGint dataStride, VGImageFormat dataFormat, VGint x, VGint y, VGint width, VGint height)
void vgGetImageSubData (VGImage image, void *data, VGint dataStride, VGImageFormat dataFormat, VGint x, VGint y, VGint width, VGint height)
VGImage vgChildImage (VGImage parent, VGint x, VGint y, VGint width, VGint height)
VGImage vgGetParent (VGImage image)
void vgCopyImage (VGImage dst, VGint dx, VGint dy, VGImage src, VGint sx, VGint sy, VGint width, VGint height, VGboolean dither)
void vgDrawImage (VGImage image)
void vgSetPixels (VGint dx, VGint dy, VGImage src, VGint sx, VGint sy, VGint width, VGint height)
void vgWritePixels (const void *data, VGint dataStride, VGImageFormat dataFormat, VGint dx, VGint dy, VGint width, VGint height)
void vgGetPixels (VGImage dst, VGint dx, VGint dy, VGint sx, VGint sy, VGint width, VGint height)
void vgReadPixels (void *data, VGint dataStride, VGImageFormat dataFormat, VGint sx, VGint sy, VGint width, VGint height)
void vgCopyPixels (VGint dx, VGint dy, VGint sx, VGint sy, VGint width, VGint height)
void vgColorMatrix (VGImage dst, VGImage src, const VGfloat *matrix)
void vgConvolve (VGImage dst, VGImage src, VGint kernelWidth, VGint kernelHeight, VGint shiftX, VGint shiftY, const VGshort *kernel, VGfloat scale, VGfloat bias, VGTilingMode tilingMode)
void vgSeparableConvolve (VGImage dst, VGImage src, VGint kernelWidth, VGint kernelHeight, VGint shiftX, VGint shiftY, const VGshort *kernelX, const VGshort *kernelY, VGfloat scale, VGfloat bias, VGTilingMode tilingMode)
void vgGaussianBlur (VGImage dst, VGImage src, VGfloat stdDeviationX, VGfloat stdDeviationY, VGTilingMode tilingMode)
void vgLookup (VGImage dst, VGImage src, const VGubyte *redLUT, const VGubyte *greenLUT, const VGubyte *blueLUT, const VGubyte *alphaLUT, VGboolean outputLinear, VGboolean outputPremultiplied)
void vgLookupSingle (VGImage dst, VGImage src, const VGuint *lookupTable, VGImageChannel sourceChannel, VGboolean outputLinear, VGboolean outputPremultiplied)
VGHardwareQueryResult vgHardwareQuery (VGHardwareQueryType key, VGint setting)
const VGubytevgGetString (VGStringID name)

Define Documentation

#define OPENVG_VERSION_1_0   1
 
#define VG_API_CALL   extern
 
#define VG_INVALID_HANDLE   ((VGHandle)0)
 
#define VG_MAXINT   ((VGint)((~((unsigned)0)) >> 1))
 
#define VG_MAXSHORT   ((VGshort)((~((unsigned)0)) >> 1))
 
#define VG_PATH_FORMAT_STANDARD   0
 

Typedef Documentation

typedef khronos_uint32_t VGbitfield
 
typedef khronos_int8_t VGbyte
 
typedef khronos_float VGfloat
 
typedef VGuint VGHandle
 
typedef VGHandle VGImage
 
typedef khronos_int32_t VGint
 
typedef VGHandle VGPaint
 
typedef VGHandle VGPath
 
typedef khronos_int16_t VGshort
 
typedef khronos_uint8_t VGubyte
 
typedef khronos_uint32_t VGuint
 

Enumeration Type Documentation

enum VGBlendMode
 
Enumerator:
VG_BLEND_SRC 
VG_BLEND_SRC_OVER 
VG_BLEND_DST_OVER 
VG_BLEND_SRC_IN 
VG_BLEND_DST_IN 
VG_BLEND_MULTIPLY 
VG_BLEND_SCREEN 
VG_BLEND_DARKEN 
VG_BLEND_LIGHTEN 
VG_BLEND_ADDITIVE 
enum VGboolean
 
Enumerator:
VG_FALSE 
VG_TRUE 
enum VGCapStyle
 
Enumerator:
VG_CAP_BUTT 
VG_CAP_ROUND 
VG_CAP_SQUARE 
enum VGColorRampSpreadMode
 
Enumerator:
VG_COLOR_RAMP_SPREAD_PAD 
VG_COLOR_RAMP_SPREAD_REPEAT 
VG_COLOR_RAMP_SPREAD_REFLECT 
enum VGErrorCode
 
Enumerator:
VG_NO_ERROR 
VG_BAD_HANDLE_ERROR 
VG_ILLEGAL_ARGUMENT_ERROR 
VG_OUT_OF_MEMORY_ERROR 
VG_PATH_CAPABILITY_ERROR 
VG_UNSUPPORTED_IMAGE_FORMAT_ERROR 
VG_UNSUPPORTED_PATH_FORMAT_ERROR 
VG_IMAGE_IN_USE_ERROR 
VG_NO_CONTEXT_ERROR 
enum VGFillRule
 
Enumerator:
VG_EVEN_ODD 
VG_NON_ZERO 
enum VGHardwareQueryResult
 
Enumerator:
VG_HARDWARE_ACCELERATED 
VG_HARDWARE_UNACCELERATED 
enum VGHardwareQueryType
 
Enumerator:
VG_IMAGE_FORMAT_QUERY 
VG_PATH_DATATYPE_QUERY 
enum VGImageChannel
 
Enumerator:
VG_RED 
VG_GREEN 
VG_BLUE 
VG_ALPHA 
enum VGImageFormat
 
Enumerator:
VG_sRGBX_8888 
VG_sRGBA_8888 
VG_sRGBA_8888_PRE 
VG_sRGB_565 
VG_sRGBA_5551 
VG_sRGBA_4444 
VG_sL_8 
VG_lRGBX_8888 
VG_lRGBA_8888 
VG_lRGBA_8888_PRE 
VG_lL_8 
VG_A_8 
VG_BW_1 
VG_sXRGB_8888 
VG_sARGB_8888 
VG_sARGB_8888_PRE 
VG_sARGB_1555 
VG_sARGB_4444 
VG_lXRGB_8888 
VG_lARGB_8888 
VG_lARGB_8888_PRE 
VG_sBGRX_8888 
VG_sBGRA_8888 
VG_sBGRA_8888_PRE 
VG_sBGR_565 
VG_sBGRA_5551 
VG_sBGRA_4444 
VG_lBGRX_8888 
VG_lBGRA_8888 
VG_lBGRA_8888_PRE 
VG_sXBGR_8888 
VG_sABGR_8888 
VG_sABGR_8888_PRE 
VG_sABGR_1555 
VG_sABGR_4444 
VG_lXBGR_8888 
VG_lABGR_8888 
VG_lABGR_8888_PRE 
enum VGImageMode
 
Enumerator:
VG_DRAW_IMAGE_NORMAL 
VG_DRAW_IMAGE_MULTIPLY 
VG_DRAW_IMAGE_STENCIL 
enum VGImageParamType
 
Enumerator:
VG_IMAGE_FORMAT 
VG_IMAGE_WIDTH 
VG_IMAGE_HEIGHT 
enum VGImageQuality
 
Enumerator:
VG_IMAGE_QUALITY_NONANTIALIASED 
VG_IMAGE_QUALITY_FASTER 
VG_IMAGE_QUALITY_BETTER 
enum VGJoinStyle
 
Enumerator:
VG_JOIN_MITER 
VG_JOIN_ROUND 
VG_JOIN_BEVEL 
enum VGMaskOperation
 
Enumerator:
VG_CLEAR_MASK 
VG_FILL_MASK 
VG_SET_MASK 
VG_UNION_MASK 
VG_INTERSECT_MASK 
VG_SUBTRACT_MASK 
enum VGMatrixMode
 
Enumerator:
VG_MATRIX_PATH_USER_TO_SURFACE 
VG_MATRIX_IMAGE_USER_TO_SURFACE 
VG_MATRIX_FILL_PAINT_TO_USER 
VG_MATRIX_STROKE_PAINT_TO_USER 
enum VGPaintMode
 
Enumerator:
VG_STROKE_PATH 
VG_FILL_PATH 
enum VGPaintParamType
 
Enumerator:
VG_PAINT_TYPE 
VG_PAINT_COLOR 
VG_PAINT_COLOR_RAMP_SPREAD_MODE 
VG_PAINT_COLOR_RAMP_PREMULTIPLIED 
VG_PAINT_COLOR_RAMP_STOPS 
VG_PAINT_LINEAR_GRADIENT 
VG_PAINT_RADIAL_GRADIENT 
VG_PAINT_PATTERN_TILING_MODE 
enum VGPaintType
 
Enumerator:
VG_PAINT_TYPE_COLOR 
VG_PAINT_TYPE_LINEAR_GRADIENT 
VG_PAINT_TYPE_RADIAL_GRADIENT 
VG_PAINT_TYPE_PATTERN 
enum VGParamType
 
Enumerator:
VG_MATRIX_MODE 
VG_FILL_RULE 
VG_IMAGE_QUALITY 
VG_RENDERING_QUALITY 
VG_BLEND_MODE 
VG_IMAGE_MODE 
VG_SCISSOR_RECTS 
VG_STROKE_LINE_WIDTH 
VG_STROKE_CAP_STYLE 
VG_STROKE_JOIN_STYLE 
VG_STROKE_MITER_LIMIT 
VG_STROKE_DASH_PATTERN 
VG_STROKE_DASH_PHASE 
VG_STROKE_DASH_PHASE_RESET 
VG_TILE_FILL_COLOR 
VG_CLEAR_COLOR 
VG_MASKING 
VG_SCISSORING 
VG_PIXEL_LAYOUT 
VG_SCREEN_LAYOUT 
VG_FILTER_FORMAT_LINEAR 
VG_FILTER_FORMAT_PREMULTIPLIED 
VG_FILTER_CHANNEL_MASK 
VG_MAX_SCISSOR_RECTS 
VG_MAX_DASH_COUNT 
VG_MAX_KERNEL_SIZE 
VG_MAX_SEPARABLE_KERNEL_SIZE 
VG_MAX_COLOR_RAMP_STOPS 
VG_MAX_IMAGE_WIDTH 
VG_MAX_IMAGE_HEIGHT 
VG_MAX_IMAGE_PIXELS 
VG_MAX_IMAGE_BYTES 
VG_MAX_FLOAT 
VG_MAX_GAUSSIAN_STD_DEVIATION 
enum VGPathAbsRel
 
Enumerator:
VG_ABSOLUTE 
VG_RELATIVE 
enum VGPathCapabilities
 
Enumerator:
VG_PATH_CAPABILITY_APPEND_FROM 
VG_PATH_CAPABILITY_APPEND_TO 
VG_PATH_CAPABILITY_MODIFY 
VG_PATH_CAPABILITY_TRANSFORM_FROM 
VG_PATH_CAPABILITY_TRANSFORM_TO 
VG_PATH_CAPABILITY_INTERPOLATE_FROM 
VG_PATH_CAPABILITY_INTERPOLATE_TO 
VG_PATH_CAPABILITY_PATH_LENGTH 
VG_PATH_CAPABILITY_POINT_ALONG_PATH 
VG_PATH_CAPABILITY_TANGENT_ALONG_PATH 
VG_PATH_CAPABILITY_PATH_BOUNDS 
VG_PATH_CAPABILITY_PATH_TRANSFORMED_BOUNDS 
VG_PATH_CAPABILITY_ALL 
enum VGPathCommand
 
Enumerator:
VG_MOVE_TO_ABS 
VG_MOVE_TO_REL 
VG_LINE_TO_ABS 
VG_LINE_TO_REL 
VG_HLINE_TO_ABS 
VG_HLINE_TO_REL 
VG_VLINE_TO_ABS 
VG_VLINE_TO_REL 
VG_QUAD_TO_ABS 
VG_QUAD_TO_REL 
VG_CUBIC_TO_ABS 
VG_CUBIC_TO_REL 
VG_SQUAD_TO_ABS 
VG_SQUAD_TO_REL 
VG_SCUBIC_TO_ABS 
VG_SCUBIC_TO_REL 
VG_SCCWARC_TO_ABS 
VG_SCCWARC_TO_REL 
VG_SCWARC_TO_ABS 
VG_SCWARC_TO_REL 
VG_LCCWARC_TO_ABS 
VG_LCCWARC_TO_REL 
VG_LCWARC_TO_ABS 
VG_LCWARC_TO_REL 
enum VGPathDatatype
 
Enumerator:
VG_PATH_DATATYPE_S_8 
VG_PATH_DATATYPE_S_16 
VG_PATH_DATATYPE_S_32 
VG_PATH_DATATYPE_F 
enum VGPathParamType
 
Enumerator:
VG_PATH_FORMAT 
VG_PATH_DATATYPE 
VG_PATH_SCALE 
VG_PATH_BIAS 
VG_PATH_NUM_SEGMENTS 
VG_PATH_NUM_COORDS 
enum VGPathSegment
 
Enumerator:
VG_CLOSE_PATH 
VG_MOVE_TO 
VG_LINE_TO 
VG_HLINE_TO 
VG_VLINE_TO 
VG_QUAD_TO 
VG_CUBIC_TO 
VG_SQUAD_TO 
VG_SCUBIC_TO 
VG_SCCWARC_TO 
VG_SCWARC_TO 
VG_LCCWARC_TO 
VG_LCWARC_TO 
enum VGPixelLayout
 
Enumerator:
VG_PIXEL_LAYOUT_UNKNOWN 
VG_PIXEL_LAYOUT_RGB_VERTICAL 
VG_PIXEL_LAYOUT_BGR_VERTICAL 
VG_PIXEL_LAYOUT_RGB_HORIZONTAL 
VG_PIXEL_LAYOUT_BGR_HORIZONTAL 
enum VGRenderingQuality
 
Enumerator:
VG_RENDERING_QUALITY_NONANTIALIASED 
VG_RENDERING_QUALITY_FASTER 
VG_RENDERING_QUALITY_BETTER 
enum VGStringID
 
Enumerator:
VG_VENDOR 
VG_RENDERER 
VG_VERSION 
VG_EXTENSIONS 
enum VGTilingMode
 
Enumerator:
VG_TILE_FILL 
VG_TILE_PAD 
VG_TILE_REPEAT 
VG_TILE_REFLECT 

Function Documentation

void vgAppendPath VGPath  dstPath,
VGPath  srcPath
 
void vgAppendPathData VGPath  dstPath,
VGint  numSegments,
const VGubyte pathSegments,
const void pathData
 
VGImage vgChildImage VGImage  parent,
VGint  x,
VGint  y,
VGint  width,
VGint  height
 
void vgClear VGint  x,
VGint  y,
VGint  width,
VGint  height
 
void vgClearImage VGImage  image,
VGint  x,
VGint  y,
VGint  width,
VGint  height
 
void vgClearPath VGPath  path,
VGbitfield  capabilities
 
void vgColorMatrix VGImage  dst,
VGImage  src,
const VGfloat matrix
 
void vgConvolve VGImage  dst,
VGImage  src,
VGint  kernelWidth,
VGint  kernelHeight,
VGint  shiftX,
VGint  shiftY,
const VGshort kernel,
VGfloat  scale,
VGfloat  bias,
VGTilingMode  tilingMode
 
void vgCopyImage VGImage  dst,
VGint  dx,
VGint  dy,
VGImage  src,
VGint  sx,
VGint  sy,
VGint  width,
VGint  height,
VGboolean  dither
 
void vgCopyPixels VGint  dx,
VGint  dy,
VGint  sx,
VGint  sy,
VGint  width,
VGint  height
 
VGImage vgCreateImage VGImageFormat  format,
VGint  width,
VGint  height,
VGbitfield  allowedQuality
 
VGPaint vgCreatePaint void   ) 
 
VGPath vgCreatePath VGint  pathFormat,
VGPathDatatype  datatype,
VGfloat  scale,
VGfloat  bias,
VGint  segmentCapacityHint,
VGint  coordCapacityHint,
VGbitfield  capabilities
 
void vgDestroyImage VGImage  image  ) 
 
void vgDestroyPaint VGPaint  paint  ) 
 
void vgDestroyPath VGPath  path  ) 
 
void vgDrawImage VGImage  image  ) 
 
void vgDrawPath VGPath  path,
VGbitfield  paintModes
 
void vgFinish void   ) 
 
void vgFlush void   ) 
 
void vgGaussianBlur VGImage  dst,
VGImage  src,
VGfloat  stdDeviationX,
VGfloat  stdDeviationY,
VGTilingMode  tilingMode
 
VGuint vgGetColor VGPaint  paint  ) 
 
VGErrorCode vgGetError void   ) 
 
VGfloat vgGetf VGParamType  type  ) 
 
void vgGetfv VGParamType  type,
VGint  count,
VGfloat values
 
VGint vgGeti VGParamType  type  ) 
 
void vgGetImageSubData VGImage  image,
void data,
VGint  dataStride,
VGImageFormat  dataFormat,
VGint  x,
VGint  y,
VGint  width,
VGint  height
 
void vgGetiv VGParamType  type,
VGint  count,
VGint values
 
void vgGetMatrix VGfloat m  ) 
 
VGPaint vgGetPaint VGPaintMode  paintMode  ) 
 
VGfloat vgGetParameterf VGHandle  object,
VGint  paramType
 
void vgGetParameterfv VGHandle  object,
VGint  paramType,
VGint  count,
VGfloat values
 
VGint vgGetParameteri VGHandle  object,
VGint  paramType
 
void vgGetParameteriv VGHandle  object,
VGint  paramType,
VGint  count,
VGint values
 
VGint vgGetParameterVectorSize VGHandle  object,
VGint  paramType
 
VGImage vgGetParent VGImage  image  ) 
 
VGbitfield vgGetPathCapabilities VGPath  path  ) 
 
void vgGetPixels VGImage  dst,
VGint  dx,
VGint  dy,
VGint  sx,
VGint  sy,
VGint  width,
VGint  height
 
const VGubyte* vgGetString VGStringID  name  ) 
 
VGint vgGetVectorSize VGParamType  type  ) 
 
VGHardwareQueryResult vgHardwareQuery VGHardwareQueryType  key,
VGint  setting
 
void vgImageSubData VGImage  image,
const void data,
VGint  dataStride,
VGImageFormat  dataFormat,
VGint  x,
VGint  y,
VGint  width,
VGint  height
 
VGboolean vgInterpolatePath VGPath  dstPath,
VGPath  startPath,
VGPath  endPath,
VGfloat  amount
 
void vgLoadIdentity void   ) 
 
void vgLoadMatrix const VGfloat m  ) 
 
void vgLookup VGImage  dst,
VGImage  src,
const VGubyte redLUT,
const VGubyte greenLUT,
const VGubyte blueLUT,
const VGubyte alphaLUT,
VGboolean  outputLinear,
VGboolean  outputPremultiplied
 
void vgLookupSingle VGImage  dst,
VGImage  src,
const VGuint lookupTable,
VGImageChannel  sourceChannel,
VGboolean  outputLinear,
VGboolean  outputPremultiplied
 
void vgMask VGImage  mask,
VGMaskOperation  operation,
VGint  x,
VGint  y,
VGint  width,
VGint  height
 
void vgModifyPathCoords VGPath  dstPath,
VGint  startIndex,
VGint  numSegments,
const void pathData
 
void vgMultMatrix const VGfloat m  ) 
 
void vgPaintPattern VGPaint  paint,
VGImage  pattern
 
void vgPathBounds VGPath  path,
VGfloat minX,
VGfloat minY,
VGfloat width,
VGfloat height
 
VGfloat vgPathLength VGPath  path,
VGint  startSegment,
VGint  numSegments
 
void vgPathTransformedBounds VGPath  path,
VGfloat minX,
VGfloat minY,
VGfloat width,
VGfloat height
 
void vgPointAlongPath VGPath  path,
VGint  startSegment,
VGint  numSegments,
VGfloat  distance,
VGfloat x,
VGfloat y,
VGfloat tangentX,
VGfloat tangentY
 
void vgReadPixels void data,
VGint  dataStride,
VGImageFormat  dataFormat,
VGint  sx,
VGint  sy,
VGint  width,
VGint  height
 
void vgRemovePathCapabilities VGPath  path,
VGbitfield  capabilities
 
void vgRotate VGfloat  angle  ) 
 
void vgScale VGfloat  sx,
VGfloat  sy
 
void vgSeparableConvolve VGImage  dst,
VGImage  src,
VGint  kernelWidth,
VGint  kernelHeight,
VGint  shiftX,
VGint  shiftY,
const VGshort kernelX,
const VGshort kernelY,
VGfloat  scale,
VGfloat  bias,
VGTilingMode  tilingMode
 
void vgSetColor VGPaint  paint,
VGuint  rgba
 
void vgSetf VGParamType  type,
VGfloat  value
 
void vgSetfv VGParamType  type,
VGint  count,
const VGfloat values
 
void vgSeti VGParamType  type,
VGint  value
 
void vgSetiv VGParamType  type,
VGint  count,
const VGint values
 
void vgSetPaint VGPaint  paint,
VGbitfield  paintModes
 
void vgSetParameterf VGHandle  object,
VGint  paramType,
VGfloat  value
 
void vgSetParameterfv VGHandle  object,
VGint  paramType,
VGint  count,
const VGfloat values
 
void vgSetParameteri VGHandle  object,
VGint  paramType,
VGint  value
 
void vgSetParameteriv VGHandle  object,
VGint  paramType,
VGint  count,
const VGint values
 
void vgSetPixels VGint  dx,
VGint  dy,
VGImage  src,
VGint  sx,
VGint  sy,
VGint  width,
VGint  height
 
void vgShear VGfloat  shx,
VGfloat  shy
 
void vgTransformPath VGPath  dstPath,
VGPath  srcPath
 
void vgTranslate VGfloat  tx,
VGfloat  ty
 
void vgWritePixels const void data,
VGint  dataStride,
VGImageFormat  dataFormat,
VGint  dx,
VGint  dy,
VGint  width,
VGint  height
 

Copyright © Nokia Corporation 2001-2007
Back to top