epoc32/include/VG/1.0/vgu.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@2
     1
/*------------------------------------------------------------------------
williamr@4
     2
 *
williamr@4
     3
 * OpenVG 1.0.1 Reference Implementation
williamr@2
     4
 * -------------------------------------
williamr@2
     5
 *
williamr@4
     6
 * Copyright (c) 2007-2009 The Khronos Group Inc.
williamr@2
     7
 *
williamr@2
     8
 * Permission is hereby granted, free of charge, to any person obtaining a
williamr@2
     9
 * copy of this software and /or associated documentation files
williamr@2
    10
 * (the "Materials "), to deal in the Materials without restriction,
williamr@2
    11
 * including without limitation the rights to use, copy, modify, merge,
williamr@2
    12
 * publish, distribute, sublicense, and/or sell copies of the Materials,
williamr@2
    13
 * and to permit persons to whom the Materials are furnished to do so,
williamr@2
    14
 * subject to the following conditions: 
williamr@2
    15
 *
williamr@2
    16
 * The above copyright notice and this permission notice shall be included 
williamr@2
    17
 * in all copies or substantial portions of the Materials. 
williamr@2
    18
 *
williamr@2
    19
 * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
williamr@2
    20
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
williamr@2
    21
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
williamr@2
    22
 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
williamr@2
    23
 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
williamr@2
    24
 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR
williamr@2
    25
 * THE USE OR OTHER DEALINGS IN THE MATERIALS.
williamr@2
    26
 *
williamr@2
    27
 *//**
williamr@2
    28
 * \file
williamr@4
    29
 * \brief	OpenVG VGU 1.0.1 API.
williamr@2
    30
 *//*-------------------------------------------------------------------*/
williamr@2
    31
williamr@4
    32
#ifndef __VG_1_0_VGU_H
williamr@4
    33
#define __VG_1_0_VGU_H
williamr@2
    34
williamr@2
    35
#ifndef __VG_VGU_H_
williamr@2
    36
#error Do not include this file directly. Use <VG/vgu.h>.
williamr@2
    37
#endif
williamr@2
    38
williamr@2
    39
/* differences from the actual sample implemtation provided by Khronos:
williamr@2
    40
- this comment
williamr@2
    41
- the Doxygen comment with tag 'publishedAll', and tag 'released'
williamr@2
    42
- changing 
williamr@2
    43
	#define VG_API_CALL extern 
williamr@2
    44
	to 
williamr@2
    45
	#define VG_API_CALL IMPORT_C
williamr@2
    46
- the addition of __SOFTFP in some of the function prototypes
williamr@2
    47
 */
williamr@2
    48
williamr@2
    49
/**
williamr@2
    50
@publishedAll
williamr@2
    51
@released
williamr@2
    52
*/
williamr@4
    53
williamr@4
    54
#ifdef __cplusplus 
williamr@4
    55
extern "C" { 
williamr@2
    56
#endif
williamr@2
    57
williamr@2
    58
#include <VG/openvg.h>
williamr@2
    59
williamr@4
    60
#define VGU_VERSION_1_0		1
williamr@4
    61
#define VGU_VERSION_1_0_1	1
williamr@2
    62
williamr@2
    63
#ifndef VGU_API_CALL
williamr@4
    64
#   if defined(SYMBIAN_VG_DLL_EXPORTS)
williamr@4
    65
#       define VGU_API_CALL EXPORT_C
williamr@4
    66
#   else
williamr@4
    67
#       define VGU_API_CALL IMPORT_C
williamr@4
    68
#   endif //defined(SYMBIAN_VG_DLL_EXPORTS)
williamr@2
    69
#endif
williamr@2
    70
williamr@2
    71
typedef enum {
williamr@2
    72
  VGU_NO_ERROR                                 = 0,
williamr@2
    73
  VGU_BAD_HANDLE_ERROR                         = 0xF000,
williamr@2
    74
  VGU_ILLEGAL_ARGUMENT_ERROR                   = 0xF001,
williamr@2
    75
  VGU_OUT_OF_MEMORY_ERROR                      = 0xF002,
williamr@2
    76
  VGU_PATH_CAPABILITY_ERROR                    = 0xF003,
williamr@2
    77
  VGU_BAD_WARP_ERROR                           = 0xF004
williamr@2
    78
} VGUErrorCode;
williamr@2
    79
williamr@2
    80
typedef enum {
williamr@2
    81
  VGU_ARC_OPEN                                 = 0xF100,
williamr@2
    82
  VGU_ARC_CHORD                                = 0xF101,
williamr@2
    83
  VGU_ARC_PIE                                  = 0xF102
williamr@2
    84
} VGUArcType;
williamr@2
    85
williamr@4
    86
VGU_API_CALL VGUErrorCode vguLine(VGPath path,
williamr@4
    87
                                  VGfloat x0, VGfloat y0,
williamr@4
    88
                                  VGfloat x1, VGfloat y1) __SOFTFP;
williamr@2
    89
williamr@4
    90
VGU_API_CALL VGUErrorCode vguPolygon(VGPath path,
williamr@4
    91
                                     const VGfloat * points, VGint count,
williamr@4
    92
                                     VGboolean closed);
williamr@2
    93
williamr@4
    94
VGU_API_CALL VGUErrorCode vguRect(VGPath path,
williamr@4
    95
                                  VGfloat x, VGfloat y,
williamr@4
    96
                                  VGfloat width, VGfloat height) __SOFTFP;
williamr@2
    97
williamr@4
    98
VGU_API_CALL VGUErrorCode vguRoundRect(VGPath path,
williamr@4
    99
                                       VGfloat x, VGfloat y,
williamr@4
   100
                                       VGfloat width, VGfloat height,
williamr@4
   101
                                       VGfloat arcWidth, VGfloat arcHeight) __SOFTFP;
williamr@2
   102
williamr@4
   103
VGU_API_CALL VGUErrorCode vguEllipse(VGPath path,
williamr@4
   104
                                     VGfloat cx, VGfloat cy,
williamr@4
   105
                                     VGfloat width, VGfloat height) __SOFTFP;
williamr@2
   106
williamr@4
   107
VGU_API_CALL VGUErrorCode vguArc(VGPath path,
williamr@4
   108
                                 VGfloat x, VGfloat y,
williamr@4
   109
                                 VGfloat width, VGfloat height,
williamr@4
   110
                                 VGfloat startAngle, VGfloat angleExtent,
williamr@4
   111
                                 VGUArcType arcType) __SOFTFP;
williamr@2
   112
williamr@4
   113
VGU_API_CALL VGUErrorCode vguComputeWarpQuadToSquare(VGfloat sx0, VGfloat sy0,
williamr@4
   114
                                                     VGfloat sx1, VGfloat sy1,
williamr@4
   115
                                                     VGfloat sx2, VGfloat sy2,
williamr@4
   116
                                                     VGfloat sx3, VGfloat sy3,
williamr@4
   117
                                                     VGfloat * matrix) __SOFTFP;
williamr@2
   118
williamr@4
   119
VGU_API_CALL VGUErrorCode vguComputeWarpSquareToQuad(VGfloat dx0, VGfloat dy0,
williamr@4
   120
                                                     VGfloat dx1, VGfloat dy1,
williamr@4
   121
                                                     VGfloat dx2, VGfloat dy2,
williamr@4
   122
                                                     VGfloat dx3, VGfloat dy3,
williamr@4
   123
                                                     VGfloat * matrix) __SOFTFP;
williamr@2
   124
williamr@4
   125
VGU_API_CALL VGUErrorCode vguComputeWarpQuadToQuad(VGfloat dx0, VGfloat dy0,
williamr@4
   126
                                                   VGfloat dx1, VGfloat dy1,
williamr@4
   127
                                                   VGfloat dx2, VGfloat dy2,
williamr@4
   128
                                                   VGfloat dx3, VGfloat dy3,
williamr@4
   129
                                                   VGfloat sx0, VGfloat sy0,
williamr@4
   130
                                                   VGfloat sx1, VGfloat sy1,
williamr@4
   131
                                                   VGfloat sx2, VGfloat sy2,
williamr@4
   132
                                                   VGfloat sx3, VGfloat sy3,
williamr@4
   133
                                                   VGfloat * matrix) __SOFTFP;
williamr@2
   134
williamr@4
   135
#ifdef __cplusplus 
williamr@2
   136
} /* extern "C" */
williamr@2
   137
#endif
williamr@2
   138
williamr@4
   139
#endif /*__VG_1_0_VGU_H */