sl@0: /*------------------------------------------------------------------------ sl@0: * sl@0: * OpenVG 1.1 Reference Implementation sl@0: * ------------------------------------- sl@0: * sl@0: * Copyright (c) 2008-2009 The Khronos Group Inc. sl@0: * sl@0: * Permission is hereby granted, free of charge, to any person obtaining a sl@0: * copy of this software and /or associated documentation files sl@0: * (the "Materials "), to deal in the Materials without restriction, sl@0: * including without limitation the rights to use, copy, modify, merge, sl@0: * publish, distribute, sublicense, and/or sell copies of the Materials, sl@0: * and to permit persons to whom the Materials are furnished to do so, sl@0: * subject to the following conditions: sl@0: * sl@0: * The above copyright notice and this permission notice shall be included sl@0: * in all copies or substantial portions of the Materials. sl@0: * sl@0: * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, sl@0: * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF sl@0: * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. sl@0: * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, sl@0: * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR sl@0: * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR sl@0: * THE USE OR OTHER DEALINGS IN THE MATERIALS. sl@0: * sl@0: *//** sl@0: * \file sl@0: * \brief OpenVG 1.1 API. sl@0: *//*-------------------------------------------------------------------*/ sl@0: sl@0: #ifndef __VG_1_1_OPENVG_H sl@0: #define __VG_1_1_OPENVG_H sl@0: sl@0: #ifndef __VG_OPENVG_H_ sl@0: #error Do not include this file directly. Use . sl@0: #endif sl@0: sl@0: /* differences from the actual sample implemtation provided by Khronos: sl@0: - this comment sl@0: - the Doxygen comment with tag 'publishedAll', and tag 'released' sl@0: - changing sl@0: #define VG_API_CALL extern sl@0: to sl@0: #define VG_API_CALL IMPORT_C sl@0: - the addition of __SOFTFP to all function prototypes sl@0: - the addition of VG_PATH_DATATYPE_INVALID in VGPathDatatype sl@0: - the addition of VG_IMAGE_FORMAT_INVALID in VGImageFormat sl@0: - the addition of VGeglImageKHR typedef for the VG_KHR_EGL_image extension sl@0: */ sl@0: sl@0: /** sl@0: @publishedAll sl@0: @released sl@0: */ sl@0: sl@0: #ifdef __cplusplus sl@0: extern "C" { sl@0: #endif sl@0: sl@0: #include sl@0: sl@0: #define OPENVG_VERSION_1_0 1 sl@0: #define OPENVG_VERSION_1_0_1 1 sl@0: #define OPENVG_VERSION_1_1 2 sl@0: sl@0: typedef khronos_float_t VGfloat; sl@0: typedef khronos_int8_t VGbyte; sl@0: typedef khronos_uint8_t VGubyte; sl@0: typedef khronos_int16_t VGshort; sl@0: typedef khronos_int32_t VGint; sl@0: typedef khronos_uint32_t VGuint; sl@0: typedef khronos_uint32_t VGbitfield; sl@0: sl@0: typedef enum { sl@0: VG_FALSE = 0, sl@0: VG_TRUE = 1 sl@0: } VGboolean; sl@0: sl@0: #define VG_MAXSHORT ((VGshort)((~((unsigned)0)) >> 1)) sl@0: #define VG_MAXINT ((VGint)((~((unsigned)0)) >> 1)) sl@0: sl@0: typedef VGuint VGHandle; sl@0: sl@0: #define VG_INVALID_HANDLE ((VGHandle)0) sl@0: sl@0: typedef enum { sl@0: VG_NO_ERROR = 0, sl@0: VG_BAD_HANDLE_ERROR = 0x1000, sl@0: VG_ILLEGAL_ARGUMENT_ERROR = 0x1001, sl@0: VG_OUT_OF_MEMORY_ERROR = 0x1002, sl@0: VG_PATH_CAPABILITY_ERROR = 0x1003, sl@0: VG_UNSUPPORTED_IMAGE_FORMAT_ERROR = 0x1004, sl@0: VG_UNSUPPORTED_PATH_FORMAT_ERROR = 0x1005, sl@0: VG_IMAGE_IN_USE_ERROR = 0x1006, sl@0: VG_NO_CONTEXT_ERROR = 0x1007 sl@0: } VGErrorCode; sl@0: sl@0: typedef enum { sl@0: /* Mode settings */ sl@0: VG_MATRIX_MODE = 0x1100, sl@0: VG_FILL_RULE = 0x1101, sl@0: VG_IMAGE_QUALITY = 0x1102, sl@0: VG_RENDERING_QUALITY = 0x1103, sl@0: VG_BLEND_MODE = 0x1104, sl@0: VG_IMAGE_MODE = 0x1105, sl@0: sl@0: /* Scissoring rectangles */ sl@0: VG_SCISSOR_RECTS = 0x1106, sl@0: sl@0: /* Color Transformation */ sl@0: VG_COLOR_TRANSFORM = 0x1170, sl@0: VG_COLOR_TRANSFORM_VALUES = 0x1171, sl@0: sl@0: /* Stroke parameters */ sl@0: VG_STROKE_LINE_WIDTH = 0x1110, sl@0: VG_STROKE_CAP_STYLE = 0x1111, sl@0: VG_STROKE_JOIN_STYLE = 0x1112, sl@0: VG_STROKE_MITER_LIMIT = 0x1113, sl@0: VG_STROKE_DASH_PATTERN = 0x1114, sl@0: VG_STROKE_DASH_PHASE = 0x1115, sl@0: VG_STROKE_DASH_PHASE_RESET = 0x1116, sl@0: sl@0: /* Edge fill color for VG_TILE_FILL tiling mode */ sl@0: VG_TILE_FILL_COLOR = 0x1120, sl@0: sl@0: /* Color for vgClear */ sl@0: VG_CLEAR_COLOR = 0x1121, sl@0: sl@0: /* Glyph origin */ sl@0: VG_GLYPH_ORIGIN = 0x1122, sl@0: sl@0: /* Enable/disable alpha masking and scissoring */ sl@0: VG_MASKING = 0x1130, sl@0: VG_SCISSORING = 0x1131, sl@0: sl@0: /* Pixel layout information */ sl@0: VG_PIXEL_LAYOUT = 0x1140, sl@0: VG_SCREEN_LAYOUT = 0x1141, sl@0: sl@0: /* Source format selection for image filters */ sl@0: VG_FILTER_FORMAT_LINEAR = 0x1150, sl@0: VG_FILTER_FORMAT_PREMULTIPLIED = 0x1151, sl@0: sl@0: /* Destination write enable mask for image filters */ sl@0: VG_FILTER_CHANNEL_MASK = 0x1152, sl@0: sl@0: /* Implementation limits (read-only) */ sl@0: VG_MAX_SCISSOR_RECTS = 0x1160, sl@0: VG_MAX_DASH_COUNT = 0x1161, sl@0: VG_MAX_KERNEL_SIZE = 0x1162, sl@0: VG_MAX_SEPARABLE_KERNEL_SIZE = 0x1163, sl@0: VG_MAX_COLOR_RAMP_STOPS = 0x1164, sl@0: VG_MAX_IMAGE_WIDTH = 0x1165, sl@0: VG_MAX_IMAGE_HEIGHT = 0x1166, sl@0: VG_MAX_IMAGE_PIXELS = 0x1167, sl@0: VG_MAX_IMAGE_BYTES = 0x1168, sl@0: VG_MAX_FLOAT = 0x1169, sl@0: VG_MAX_GAUSSIAN_STD_DEVIATION = 0x116A sl@0: } VGParamType; sl@0: sl@0: typedef enum { sl@0: VG_RENDERING_QUALITY_NONANTIALIASED = 0x1200, sl@0: VG_RENDERING_QUALITY_FASTER = 0x1201, sl@0: VG_RENDERING_QUALITY_BETTER = 0x1202 /* Default */ sl@0: } VGRenderingQuality; sl@0: sl@0: typedef enum { sl@0: VG_PIXEL_LAYOUT_UNKNOWN = 0x1300, sl@0: VG_PIXEL_LAYOUT_RGB_VERTICAL = 0x1301, sl@0: VG_PIXEL_LAYOUT_BGR_VERTICAL = 0x1302, sl@0: VG_PIXEL_LAYOUT_RGB_HORIZONTAL = 0x1303, sl@0: VG_PIXEL_LAYOUT_BGR_HORIZONTAL = 0x1304 sl@0: } VGPixelLayout; sl@0: sl@0: typedef enum { sl@0: VG_MATRIX_PATH_USER_TO_SURFACE = 0x1400, sl@0: VG_MATRIX_IMAGE_USER_TO_SURFACE = 0x1401, sl@0: VG_MATRIX_FILL_PAINT_TO_USER = 0x1402, sl@0: VG_MATRIX_STROKE_PAINT_TO_USER = 0x1403, sl@0: VG_MATRIX_GLYPH_USER_TO_SURFACE = 0x1404 sl@0: } VGMatrixMode; sl@0: sl@0: typedef enum { sl@0: VG_CLEAR_MASK = 0x1500, sl@0: VG_FILL_MASK = 0x1501, sl@0: VG_SET_MASK = 0x1502, sl@0: VG_UNION_MASK = 0x1503, sl@0: VG_INTERSECT_MASK = 0x1504, sl@0: VG_SUBTRACT_MASK = 0x1505 sl@0: } VGMaskOperation; sl@0: sl@0: #define VG_PATH_FORMAT_STANDARD 0 sl@0: sl@0: typedef enum { sl@0: VG_PATH_DATATYPE_INVALID = -1, sl@0: VG_PATH_DATATYPE_S_8 = 0, sl@0: VG_PATH_DATATYPE_S_16 = 1, sl@0: VG_PATH_DATATYPE_S_32 = 2, sl@0: VG_PATH_DATATYPE_F = 3 sl@0: } VGPathDatatype; sl@0: sl@0: typedef enum { sl@0: VG_ABSOLUTE = 0, sl@0: VG_RELATIVE = 1 sl@0: } VGPathAbsRel; sl@0: sl@0: typedef enum { sl@0: VG_CLOSE_PATH = ( 0 << 1), sl@0: VG_MOVE_TO = ( 1 << 1), sl@0: VG_LINE_TO = ( 2 << 1), sl@0: VG_HLINE_TO = ( 3 << 1), sl@0: VG_VLINE_TO = ( 4 << 1), sl@0: VG_QUAD_TO = ( 5 << 1), sl@0: VG_CUBIC_TO = ( 6 << 1), sl@0: VG_SQUAD_TO = ( 7 << 1), sl@0: VG_SCUBIC_TO = ( 8 << 1), sl@0: VG_SCCWARC_TO = ( 9 << 1), sl@0: VG_SCWARC_TO = (10 << 1), sl@0: VG_LCCWARC_TO = (11 << 1), sl@0: VG_LCWARC_TO = (12 << 1) sl@0: } VGPathSegment; sl@0: sl@0: typedef enum { sl@0: VG_MOVE_TO_ABS = VG_MOVE_TO | VG_ABSOLUTE, sl@0: VG_MOVE_TO_REL = VG_MOVE_TO | VG_RELATIVE, sl@0: VG_LINE_TO_ABS = VG_LINE_TO | VG_ABSOLUTE, sl@0: VG_LINE_TO_REL = VG_LINE_TO | VG_RELATIVE, sl@0: VG_HLINE_TO_ABS = VG_HLINE_TO | VG_ABSOLUTE, sl@0: VG_HLINE_TO_REL = VG_HLINE_TO | VG_RELATIVE, sl@0: VG_VLINE_TO_ABS = VG_VLINE_TO | VG_ABSOLUTE, sl@0: VG_VLINE_TO_REL = VG_VLINE_TO | VG_RELATIVE, sl@0: VG_QUAD_TO_ABS = VG_QUAD_TO | VG_ABSOLUTE, sl@0: VG_QUAD_TO_REL = VG_QUAD_TO | VG_RELATIVE, sl@0: VG_CUBIC_TO_ABS = VG_CUBIC_TO | VG_ABSOLUTE, sl@0: VG_CUBIC_TO_REL = VG_CUBIC_TO | VG_RELATIVE, sl@0: VG_SQUAD_TO_ABS = VG_SQUAD_TO | VG_ABSOLUTE, sl@0: VG_SQUAD_TO_REL = VG_SQUAD_TO | VG_RELATIVE, sl@0: VG_SCUBIC_TO_ABS = VG_SCUBIC_TO | VG_ABSOLUTE, sl@0: VG_SCUBIC_TO_REL = VG_SCUBIC_TO | VG_RELATIVE, sl@0: VG_SCCWARC_TO_ABS = VG_SCCWARC_TO | VG_ABSOLUTE, sl@0: VG_SCCWARC_TO_REL = VG_SCCWARC_TO | VG_RELATIVE, sl@0: VG_SCWARC_TO_ABS = VG_SCWARC_TO | VG_ABSOLUTE, sl@0: VG_SCWARC_TO_REL = VG_SCWARC_TO | VG_RELATIVE, sl@0: VG_LCCWARC_TO_ABS = VG_LCCWARC_TO | VG_ABSOLUTE, sl@0: VG_LCCWARC_TO_REL = VG_LCCWARC_TO | VG_RELATIVE, sl@0: VG_LCWARC_TO_ABS = VG_LCWARC_TO | VG_ABSOLUTE, sl@0: VG_LCWARC_TO_REL = VG_LCWARC_TO | VG_RELATIVE sl@0: } VGPathCommand; sl@0: sl@0: typedef VGHandle VGPath; sl@0: sl@0: typedef enum { sl@0: VG_PATH_CAPABILITY_APPEND_FROM = (1 << 0), sl@0: VG_PATH_CAPABILITY_APPEND_TO = (1 << 1), sl@0: VG_PATH_CAPABILITY_MODIFY = (1 << 2), sl@0: VG_PATH_CAPABILITY_TRANSFORM_FROM = (1 << 3), sl@0: VG_PATH_CAPABILITY_TRANSFORM_TO = (1 << 4), sl@0: VG_PATH_CAPABILITY_INTERPOLATE_FROM = (1 << 5), sl@0: VG_PATH_CAPABILITY_INTERPOLATE_TO = (1 << 6), sl@0: VG_PATH_CAPABILITY_PATH_LENGTH = (1 << 7), sl@0: VG_PATH_CAPABILITY_POINT_ALONG_PATH = (1 << 8), sl@0: VG_PATH_CAPABILITY_TANGENT_ALONG_PATH = (1 << 9), sl@0: VG_PATH_CAPABILITY_PATH_BOUNDS = (1 << 10), sl@0: VG_PATH_CAPABILITY_PATH_TRANSFORMED_BOUNDS = (1 << 11), sl@0: VG_PATH_CAPABILITY_ALL = (1 << 12) - 1 sl@0: } VGPathCapabilities; sl@0: sl@0: typedef enum { sl@0: VG_PATH_FORMAT = 0x1600, sl@0: VG_PATH_DATATYPE = 0x1601, sl@0: VG_PATH_SCALE = 0x1602, sl@0: VG_PATH_BIAS = 0x1603, sl@0: VG_PATH_NUM_SEGMENTS = 0x1604, sl@0: VG_PATH_NUM_COORDS = 0x1605 sl@0: } VGPathParamType; sl@0: sl@0: typedef enum { sl@0: VG_CAP_BUTT = 0x1700, sl@0: VG_CAP_ROUND = 0x1701, sl@0: VG_CAP_SQUARE = 0x1702 sl@0: } VGCapStyle; sl@0: sl@0: typedef enum { sl@0: VG_JOIN_MITER = 0x1800, sl@0: VG_JOIN_ROUND = 0x1801, sl@0: VG_JOIN_BEVEL = 0x1802 sl@0: } VGJoinStyle; sl@0: sl@0: typedef enum { sl@0: VG_EVEN_ODD = 0x1900, sl@0: VG_NON_ZERO = 0x1901 sl@0: } VGFillRule; sl@0: sl@0: typedef enum { sl@0: VG_STROKE_PATH = (1 << 0), sl@0: VG_FILL_PATH = (1 << 1) sl@0: } VGPaintMode; sl@0: sl@0: typedef VGHandle VGPaint; sl@0: sl@0: typedef enum { sl@0: /* Color paint parameters */ sl@0: VG_PAINT_TYPE = 0x1A00, sl@0: VG_PAINT_COLOR = 0x1A01, sl@0: VG_PAINT_COLOR_RAMP_SPREAD_MODE = 0x1A02, sl@0: VG_PAINT_COLOR_RAMP_PREMULTIPLIED = 0x1A07, sl@0: VG_PAINT_COLOR_RAMP_STOPS = 0x1A03, sl@0: sl@0: /* Linear gradient paint parameters */ sl@0: VG_PAINT_LINEAR_GRADIENT = 0x1A04, sl@0: sl@0: /* Radial gradient paint parameters */ sl@0: VG_PAINT_RADIAL_GRADIENT = 0x1A05, sl@0: sl@0: /* Pattern paint parameters */ sl@0: VG_PAINT_PATTERN_TILING_MODE = 0x1A06 sl@0: } VGPaintParamType; sl@0: sl@0: typedef enum { sl@0: VG_PAINT_TYPE_COLOR = 0x1B00, sl@0: VG_PAINT_TYPE_LINEAR_GRADIENT = 0x1B01, sl@0: VG_PAINT_TYPE_RADIAL_GRADIENT = 0x1B02, sl@0: VG_PAINT_TYPE_PATTERN = 0x1B03 sl@0: } VGPaintType; sl@0: sl@0: typedef enum { sl@0: VG_COLOR_RAMP_SPREAD_PAD = 0x1C00, sl@0: VG_COLOR_RAMP_SPREAD_REPEAT = 0x1C01, sl@0: VG_COLOR_RAMP_SPREAD_REFLECT = 0x1C02 sl@0: } VGColorRampSpreadMode; sl@0: sl@0: typedef enum { sl@0: VG_TILE_FILL = 0x1D00, sl@0: VG_TILE_PAD = 0x1D01, sl@0: VG_TILE_REPEAT = 0x1D02, sl@0: VG_TILE_REFLECT = 0x1D03 sl@0: } VGTilingMode; sl@0: sl@0: typedef enum { sl@0: /* RGB{A,X} channel ordering */ sl@0: VG_IMAGE_FORMAT_INVALID = -1, sl@0: VG_sRGBX_8888 = 0, sl@0: VG_sRGBA_8888 = 1, sl@0: VG_sRGBA_8888_PRE = 2, sl@0: VG_sRGB_565 = 3, sl@0: VG_sRGBA_5551 = 4, sl@0: VG_sRGBA_4444 = 5, sl@0: VG_sL_8 = 6, sl@0: VG_lRGBX_8888 = 7, sl@0: VG_lRGBA_8888 = 8, sl@0: VG_lRGBA_8888_PRE = 9, sl@0: VG_lL_8 = 10, sl@0: VG_A_8 = 11, sl@0: VG_BW_1 = 12, sl@0: VG_A_1 = 13, sl@0: VG_A_4 = 14, sl@0: sl@0: /* {A,X}RGB channel ordering */ sl@0: VG_sXRGB_8888 = 0 | (1 << 6), sl@0: VG_sARGB_8888 = 1 | (1 << 6), sl@0: VG_sARGB_8888_PRE = 2 | (1 << 6), sl@0: VG_sARGB_1555 = 4 | (1 << 6), sl@0: VG_sARGB_4444 = 5 | (1 << 6), sl@0: VG_lXRGB_8888 = 7 | (1 << 6), sl@0: VG_lARGB_8888 = 8 | (1 << 6), sl@0: VG_lARGB_8888_PRE = 9 | (1 << 6), sl@0: sl@0: /* BGR{A,X} channel ordering */ sl@0: VG_sBGRX_8888 = 0 | (1 << 7), sl@0: VG_sBGRA_8888 = 1 | (1 << 7), sl@0: VG_sBGRA_8888_PRE = 2 | (1 << 7), sl@0: VG_sBGR_565 = 3 | (1 << 7), sl@0: VG_sBGRA_5551 = 4 | (1 << 7), sl@0: VG_sBGRA_4444 = 5 | (1 << 7), sl@0: VG_lBGRX_8888 = 7 | (1 << 7), sl@0: VG_lBGRA_8888 = 8 | (1 << 7), sl@0: VG_lBGRA_8888_PRE = 9 | (1 << 7), sl@0: sl@0: /* {A,X}BGR channel ordering */ sl@0: VG_sXBGR_8888 = 0 | (1 << 6) | (1 << 7), sl@0: VG_sABGR_8888 = 1 | (1 << 6) | (1 << 7), sl@0: VG_sABGR_8888_PRE = 2 | (1 << 6) | (1 << 7), sl@0: VG_sABGR_1555 = 4 | (1 << 6) | (1 << 7), sl@0: VG_sABGR_4444 = 5 | (1 << 6) | (1 << 7), sl@0: VG_lXBGR_8888 = 7 | (1 << 6) | (1 << 7), sl@0: VG_lABGR_8888 = 8 | (1 << 6) | (1 << 7), sl@0: VG_lABGR_8888_PRE = 9 | (1 << 6) | (1 << 7) sl@0: } VGImageFormat; sl@0: sl@0: typedef VGHandle VGImage; sl@0: typedef int VGeglImageKHR; sl@0: sl@0: typedef enum { sl@0: VG_IMAGE_QUALITY_NONANTIALIASED = (1 << 0), sl@0: VG_IMAGE_QUALITY_FASTER = (1 << 1), sl@0: VG_IMAGE_QUALITY_BETTER = (1 << 2) sl@0: } VGImageQuality; sl@0: sl@0: typedef enum { sl@0: VG_IMAGE_FORMAT = 0x1E00, sl@0: VG_IMAGE_WIDTH = 0x1E01, sl@0: VG_IMAGE_HEIGHT = 0x1E02 sl@0: } VGImageParamType; sl@0: sl@0: typedef enum { sl@0: VG_DRAW_IMAGE_NORMAL = 0x1F00, sl@0: VG_DRAW_IMAGE_MULTIPLY = 0x1F01, sl@0: VG_DRAW_IMAGE_STENCIL = 0x1F02 sl@0: } VGImageMode; sl@0: sl@0: typedef enum { sl@0: VG_RED = (1 << 3), sl@0: VG_GREEN = (1 << 2), sl@0: VG_BLUE = (1 << 1), sl@0: VG_ALPHA = (1 << 0) sl@0: } VGImageChannel; sl@0: sl@0: typedef enum { sl@0: VG_BLEND_SRC = 0x2000, sl@0: VG_BLEND_SRC_OVER = 0x2001, sl@0: VG_BLEND_DST_OVER = 0x2002, sl@0: VG_BLEND_SRC_IN = 0x2003, sl@0: VG_BLEND_DST_IN = 0x2004, sl@0: VG_BLEND_MULTIPLY = 0x2005, sl@0: VG_BLEND_SCREEN = 0x2006, sl@0: VG_BLEND_DARKEN = 0x2007, sl@0: VG_BLEND_LIGHTEN = 0x2008, sl@0: VG_BLEND_ADDITIVE = 0x2009 sl@0: } VGBlendMode; sl@0: sl@0: typedef enum { sl@0: VG_IMAGE_FORMAT_QUERY = 0x2100, sl@0: VG_PATH_DATATYPE_QUERY = 0x2101 sl@0: } VGHardwareQueryType; sl@0: sl@0: typedef enum { sl@0: VG_HARDWARE_ACCELERATED = 0x2200, sl@0: VG_HARDWARE_UNACCELERATED = 0x2201 sl@0: } VGHardwareQueryResult; sl@0: sl@0: typedef enum { sl@0: VG_VENDOR = 0x2300, sl@0: VG_RENDERER = 0x2301, sl@0: VG_VERSION = 0x2302, sl@0: VG_EXTENSIONS = 0x2303 sl@0: } VGStringID; sl@0: sl@0: typedef enum { sl@0: VG_FONT_NUM_GLYPHS = 0x2F00 sl@0: } VGFontParamType; sl@0: sl@0: sl@0: /* Function Prototypes */ sl@0: sl@0: #ifndef VG_API_CALL sl@0: # if defined(SYMBIAN_VG_DLL_EXPORTS) sl@0: # define VG_API_CALL EXPORT_C sl@0: # else sl@0: # define VG_API_CALL IMPORT_C sl@0: # endif //defined(SYMBIAN_VG_DLL_EXPORTS) sl@0: #endif sl@0: #ifndef VG_APIENTRY sl@0: #define VG_APIENTRY /* nothing */ sl@0: #endif sl@0: #ifndef VG_APIEXIT sl@0: #define VG_APIEXIT __SOFTFP sl@0: #endif sl@0: sl@0: VG_API_CALL VGErrorCode VG_APIENTRY sl@0: vgGetError(void) VG_APIEXIT; sl@0: sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgFlush(void) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgFinish(void) VG_APIEXIT; sl@0: sl@0: /* Getters and Setters */ sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgSetf (VGParamType type, VGfloat value) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgSeti (VGParamType type, VGint value) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgSetfv(VGParamType type, VGint count, sl@0: const VGfloat * values) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgSetiv(VGParamType type, VGint count, sl@0: const VGint * values) VG_APIEXIT; sl@0: VG_API_CALL VGfloat VG_APIENTRY sl@0: vgGetf(VGParamType type) VG_APIEXIT; sl@0: VG_API_CALL VGint VG_APIENTRY sl@0: vgGeti(VGParamType type) VG_APIEXIT; sl@0: VG_API_CALL VGint VG_APIENTRY sl@0: vgGetVectorSize(VGParamType type) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgGetfv(VGParamType type, VGint count, sl@0: VGfloat * values) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgGetiv(VGParamType type, VGint count, sl@0: VGint * values) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgSetParameterf(VGHandle object, sl@0: VGint paramType, sl@0: VGfloat value) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgSetParameteri(VGHandle object, sl@0: VGint paramType, sl@0: VGint value) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgSetParameterfv(VGHandle object, sl@0: VGint paramType, sl@0: VGint count, sl@0: const VGfloat * values) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgSetParameteriv(VGHandle object, sl@0: VGint paramType, sl@0: VGint count, sl@0: const VGint * values) VG_APIEXIT; sl@0: sl@0: VG_API_CALL VGfloat VG_APIENTRY sl@0: vgGetParameterf(VGHandle object, sl@0: VGint paramType) VG_APIEXIT; sl@0: VG_API_CALL VGint VG_APIENTRY sl@0: vgGetParameteri(VGHandle object, sl@0: VGint paramType) VG_APIEXIT; sl@0: VG_API_CALL VGint VG_APIENTRY sl@0: vgGetParameterVectorSize(VGHandle object, sl@0: VGint paramType) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgGetParameterfv(VGHandle object, sl@0: VGint paramType, sl@0: VGint count, sl@0: VGfloat * values) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgGetParameteriv(VGHandle object, sl@0: VGint paramType, sl@0: VGint count, sl@0: VGint * values) VG_APIEXIT; sl@0: sl@0: /* Matrix Manipulation */ sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgLoadIdentity(void) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgLoadMatrix(const VGfloat * m) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgGetMatrix(VGfloat * m) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgMultMatrix(const VGfloat * m) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgTranslate(VGfloat tx, VGfloat ty) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgScale(VGfloat sx, VGfloat sy) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgShear(VGfloat shx, VGfloat shy) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgRotate(VGfloat angle) VG_APIEXIT; sl@0: sl@0: /* Masking and Clearing */ sl@0: typedef VGHandle VGMaskLayer; sl@0: sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgMask(VGHandle mask, VGMaskOperation operation, sl@0: VGint x, VGint y, sl@0: VGint width, VGint height) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgRenderToMask(VGPath path, sl@0: VGbitfield paintModes, sl@0: VGMaskOperation operation) VG_APIEXIT; sl@0: VG_API_CALL VGMaskLayer VG_APIENTRY sl@0: vgCreateMaskLayer(VGint width, VGint height) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgDestroyMaskLayer(VGMaskLayer maskLayer) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgFillMaskLayer(VGMaskLayer maskLayer, sl@0: VGint x, VGint y, sl@0: VGint width, VGint height, sl@0: VGfloat value) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgCopyMask(VGMaskLayer maskLayer, sl@0: VGint sx, VGint sy, sl@0: VGint dx, VGint dy, sl@0: VGint width, VGint height) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgClear(VGint x, VGint y, sl@0: VGint width, VGint height) VG_APIEXIT; sl@0: sl@0: /* Paths */ sl@0: VG_API_CALL VGPath VG_APIENTRY sl@0: vgCreatePath(VGint pathFormat, sl@0: VGPathDatatype datatype, sl@0: VGfloat scale, VGfloat bias, sl@0: VGint segmentCapacityHint, sl@0: VGint coordCapacityHint, sl@0: VGbitfield capabilities) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgClearPath(VGPath path, VGbitfield capabilities) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgDestroyPath(VGPath path) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgRemovePathCapabilities(VGPath path, sl@0: VGbitfield capabilities) VG_APIEXIT; sl@0: VG_API_CALL VGbitfield VG_APIENTRY sl@0: vgGetPathCapabilities(VGPath path) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgAppendPath(VGPath dstPath, VGPath srcPath) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgAppendPathData(VGPath dstPath, sl@0: VGint numSegments, sl@0: const VGubyte * pathSegments, sl@0: const void * pathData) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgModifyPathCoords(VGPath dstPath, sl@0: VGint startIndex, sl@0: VGint numSegments, sl@0: const void * pathData) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgTransformPath(VGPath dstPath, VGPath srcPath) VG_APIEXIT; sl@0: VG_API_CALL VGboolean VG_APIENTRY sl@0: vgInterpolatePath(VGPath dstPath, sl@0: VGPath startPath, sl@0: VGPath endPath, sl@0: VGfloat amount) VG_APIEXIT; sl@0: VG_API_CALL VGfloat VG_APIENTRY sl@0: vgPathLength(VGPath path, sl@0: VGint startSegment, sl@0: VGint numSegments) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgPointAlongPath(VGPath path, sl@0: VGint startSegment, sl@0: VGint numSegments, sl@0: VGfloat distance, sl@0: VGfloat * x, VGfloat * y, sl@0: VGfloat * tangentX, sl@0: VGfloat * tangentY) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgPathBounds(VGPath path, sl@0: VGfloat * minX, sl@0: VGfloat * minY, sl@0: VGfloat * width, sl@0: VGfloat * height) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgPathTransformedBounds(VGPath path, sl@0: VGfloat * minX, sl@0: VGfloat * minY, sl@0: VGfloat * width, sl@0: VGfloat * height) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgDrawPath(VGPath path, VGbitfield paintModes) VG_APIEXIT; sl@0: sl@0: /* Paint */ sl@0: VG_API_CALL VGPaint VG_APIENTRY sl@0: vgCreatePaint(void) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgDestroyPaint(VGPaint paint) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgSetPaint(VGPaint paint, VGbitfield paintModes) VG_APIEXIT; sl@0: VG_API_CALL VGPaint VG_APIENTRY sl@0: vgGetPaint(VGPaintMode paintMode) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgSetColor(VGPaint paint, VGuint rgba) VG_APIEXIT; sl@0: VG_API_CALL VGuint VG_APIENTRY sl@0: vgGetColor(VGPaint paint) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgPaintPattern(VGPaint paint, VGImage pattern) VG_APIEXIT; sl@0: sl@0: /* Images */ sl@0: VG_API_CALL VGImage VG_APIENTRY sl@0: vgCreateImage(VGImageFormat format, sl@0: VGint width, VGint height, sl@0: VGbitfield allowedQuality) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgDestroyImage(VGImage image) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgClearImage(VGImage image, sl@0: VGint x, VGint y, sl@0: VGint width, VGint height) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgImageSubData(VGImage image, sl@0: const void * data, sl@0: VGint dataStride, sl@0: VGImageFormat dataFormat, sl@0: VGint x, VGint y, sl@0: VGint width, VGint height) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgGetImageSubData(VGImage image, sl@0: void * data, sl@0: VGint dataStride, sl@0: VGImageFormat dataFormat, sl@0: VGint x, VGint y, sl@0: VGint width, VGint height) VG_APIEXIT; sl@0: VG_API_CALL VGImage VG_APIENTRY sl@0: vgChildImage(VGImage parent, sl@0: VGint x, VGint y, sl@0: VGint width, VGint height) VG_APIEXIT; sl@0: VG_API_CALL VGImage VG_APIENTRY sl@0: vgGetParent(VGImage image) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgCopyImage(VGImage dst, VGint dx, VGint dy, sl@0: VGImage src, VGint sx, VGint sy, sl@0: VGint width, VGint height, sl@0: VGboolean dither) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgDrawImage(VGImage image) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgSetPixels(VGint dx, VGint dy, sl@0: VGImage src, VGint sx, VGint sy, sl@0: VGint width, VGint height) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgWritePixels(const void * data, VGint dataStride, sl@0: VGImageFormat dataFormat, sl@0: VGint dx, VGint dy, sl@0: VGint width, VGint height) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgGetPixels(VGImage dst, VGint dx, VGint dy, sl@0: VGint sx, VGint sy, sl@0: VGint width, VGint height) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgReadPixels(void * data, VGint dataStride, sl@0: VGImageFormat dataFormat, sl@0: VGint sx, VGint sy, sl@0: VGint width, VGint height) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgCopyPixels(VGint dx, VGint dy, sl@0: VGint sx, VGint sy, sl@0: VGint width, VGint height) VG_APIEXIT; sl@0: sl@0: /* Text */ sl@0: typedef VGHandle VGFont; sl@0: sl@0: VG_API_CALL VGFont VG_APIENTRY sl@0: vgCreateFont(VGint glyphCapacityHint) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgDestroyFont(VGFont font) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgSetGlyphToPath(VGFont font, sl@0: VGuint glyphIndex, sl@0: VGPath path, sl@0: VGboolean isHinted, sl@0: const VGfloat glyphOrigin [2], sl@0: const VGfloat escapement[2]) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgSetGlyphToImage(VGFont font, sl@0: VGuint glyphIndex, sl@0: VGImage image, sl@0: const VGfloat glyphOrigin [2], sl@0: const VGfloat escapement[2]) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgClearGlyph(VGFont font, sl@0: VGuint glyphIndex) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgDrawGlyph(VGFont font, sl@0: VGuint glyphIndex, sl@0: VGbitfield paintModes, sl@0: VGboolean allowAutoHinting) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgDrawGlyphs(VGFont font, sl@0: VGint glyphCount, sl@0: const VGuint * glyphIndices, sl@0: const VGfloat * adjustments_x, sl@0: const VGfloat * adjustments_y, sl@0: VGbitfield paintModes, sl@0: VGboolean allowAutoHinting) VG_APIEXIT; sl@0: sl@0: /* Image Filters */ sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgColorMatrix(VGImage dst, VGImage src, sl@0: const VGfloat * matrix) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgConvolve(VGImage dst, VGImage src, sl@0: VGint kernelWidth, VGint kernelHeight, sl@0: VGint shiftX, VGint shiftY, sl@0: const VGshort * kernel, sl@0: VGfloat scale, sl@0: VGfloat bias, sl@0: VGTilingMode tilingMode) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgSeparableConvolve(VGImage dst, VGImage src, sl@0: VGint kernelWidth, sl@0: VGint kernelHeight, sl@0: VGint shiftX, VGint shiftY, sl@0: const VGshort * kernelX, sl@0: const VGshort * kernelY, sl@0: VGfloat scale, sl@0: VGfloat bias, sl@0: VGTilingMode tilingMode) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgGaussianBlur(VGImage dst, VGImage src, sl@0: VGfloat stdDeviationX, sl@0: VGfloat stdDeviationY, sl@0: VGTilingMode tilingMode) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgLookup(VGImage dst, VGImage src, sl@0: const VGubyte * redLUT, sl@0: const VGubyte * greenLUT, sl@0: const VGubyte * blueLUT, sl@0: const VGubyte * alphaLUT, sl@0: VGboolean outputLinear, sl@0: VGboolean outputPremultiplied) VG_APIEXIT; sl@0: VG_API_CALL void VG_APIENTRY sl@0: vgLookupSingle(VGImage dst, VGImage src, sl@0: const VGuint * lookupTable, sl@0: VGImageChannel sourceChannel, sl@0: VGboolean outputLinear, sl@0: VGboolean outputPremultiplied) VG_APIEXIT; sl@0: sl@0: /* Hardware Queries */ sl@0: VG_API_CALL VGHardwareQueryResult VG_APIENTRY sl@0: vgHardwareQuery sl@0: (VGHardwareQueryType key, sl@0: VGint setting) VG_APIEXIT; sl@0: sl@0: /* Renderer and Extension Information */ sl@0: VG_API_CALL const VGubyte * VG_APIENTRY sl@0: vgGetString(VGStringID name) VG_APIEXIT; sl@0: sl@0: #ifdef __cplusplus sl@0: } /* extern "C" */ sl@0: #endif sl@0: sl@0: #endif /* __VG_1_1_OPENVG_H */