perfopts/vgu.cpp
changeset 69 1911c0fa3c76
parent 68 cc09a5c2b5fb
equal deleted inserted replaced
68:cc09a5c2b5fb 69:1911c0fa3c76
    19 
    19 
    20 #include "vguinternal.h" //contains do_vguXX fucntion declarations
    20 #include "vguinternal.h" //contains do_vguXX fucntion declarations
    21 
    21 
    22 extern "C" {
    22 extern "C" {
    23 
    23 
    24 EXPORT_C VGUErrorCode vguLine(VGPath path, VGfloat x0, VGfloat y0, VGfloat x1, VGfloat y1)
    24 EXPORT_C VGUErrorCode vguLine(VGPath path, VGfloat x0, VGfloat y0, VGfloat x1, VGfloat y1) __SOFTFP
    25 {
    25 {
    26 return do_vguLine(path, x0, y0, x1, y1);
    26 return do_vguLine(path, x0, y0, x1, y1);
    27 }
    27 }
    28 
    28 
    29 /*-------------------------------------------------------------------*//*!
    29 /*-------------------------------------------------------------------*//*!
    31 * \param	
    31 * \param	
    32 * \return	
    32 * \return	
    33 * \note		
    33 * \note		
    34 *//*-------------------------------------------------------------------*/
    34 *//*-------------------------------------------------------------------*/
    35 
    35 
    36 EXPORT_C VGUErrorCode vguPolygon(VGPath path, const VGfloat * points, VGint count, VGboolean closed)
    36 EXPORT_C VGUErrorCode vguPolygon(VGPath path, const VGfloat * points, VGint count, VGboolean closed) __SOFTFP
    37 {
    37 {
    38 return do_vguPolygon(path, points, count, closed);
    38 return do_vguPolygon(path, points, count, closed);
    39 }
    39 }
    40 
    40 
    41 /*-------------------------------------------------------------------*//*!
    41 /*-------------------------------------------------------------------*//*!
    43 * \param	
    43 * \param	
    44 * \return	
    44 * \return	
    45 * \note		
    45 * \note		
    46 *//*-------------------------------------------------------------------*/
    46 *//*-------------------------------------------------------------------*/
    47 
    47 
    48 EXPORT_C VGUErrorCode vguRect(VGPath path, VGfloat x, VGfloat y, VGfloat width, VGfloat height)
    48 EXPORT_C VGUErrorCode vguRect(VGPath path, VGfloat x, VGfloat y, VGfloat width, VGfloat height) __SOFTFP
    49 {
    49 {
    50 return do_vguRect(path, x, y, width, height);
    50 return do_vguRect(path, x, y, width, height);
    51 }
    51 }
    52 
    52 
    53 /*-------------------------------------------------------------------*//*!
    53 /*-------------------------------------------------------------------*//*!
    55 * \param	
    55 * \param	
    56 * \return	
    56 * \return	
    57 * \note		
    57 * \note		
    58 *//*-------------------------------------------------------------------*/
    58 *//*-------------------------------------------------------------------*/
    59 
    59 
    60 EXPORT_C VGUErrorCode vguRoundRect(VGPath path, VGfloat x, VGfloat y, VGfloat width, VGfloat height, VGfloat arcWidth, VGfloat arcHeight)
    60 EXPORT_C VGUErrorCode vguRoundRect(VGPath path, VGfloat x, VGfloat y, VGfloat width, VGfloat height, VGfloat arcWidth, VGfloat arcHeight) __SOFTFP
    61 {
    61 {
    62 return do_vguRoundRect(path, x, y, width, height, arcWidth, arcHeight);
    62 return do_vguRoundRect(path, x, y, width, height, arcWidth, arcHeight);
    63 }
    63 }
    64 
    64 
    65 /*-------------------------------------------------------------------*//*!
    65 /*-------------------------------------------------------------------*//*!
    67 * \param	
    67 * \param	
    68 * \return	
    68 * \return	
    69 * \note		
    69 * \note		
    70 *//*-------------------------------------------------------------------*/
    70 *//*-------------------------------------------------------------------*/
    71 
    71 
    72 EXPORT_C VGUErrorCode vguEllipse(VGPath path, VGfloat cx, VGfloat cy, VGfloat width, VGfloat height)
    72 EXPORT_C VGUErrorCode vguEllipse(VGPath path, VGfloat cx, VGfloat cy, VGfloat width, VGfloat height) __SOFTFP
    73 {
    73 {
    74 return do_vguEllipse(path, cx, cy, width, height);
    74 return do_vguEllipse(path, cx, cy, width, height);
    75 }
    75 }
    76 
    76 
    77 /*-------------------------------------------------------------------*//*!
    77 /*-------------------------------------------------------------------*//*!
    79 * \param	
    79 * \param	
    80 * \return	
    80 * \return	
    81 * \note		
    81 * \note		
    82 *//*-------------------------------------------------------------------*/
    82 *//*-------------------------------------------------------------------*/
    83 
    83 
    84 EXPORT_C VGUErrorCode vguArc(VGPath path, VGfloat x, VGfloat y, VGfloat width, VGfloat height, VGfloat startAngle, VGfloat angleExtent, VGUArcType arcType)
    84 EXPORT_C VGUErrorCode vguArc(VGPath path, VGfloat x, VGfloat y, VGfloat width, VGfloat height, VGfloat startAngle, VGfloat angleExtent, VGUArcType arcType) __SOFTFP
    85 {
    85 {
    86 return do_vguArc(path, x, y, width, height, startAngle, angleExtent, arcType);
    86 return do_vguArc(path, x, y, width, height, startAngle, angleExtent, arcType);
    87 }
    87 }
    88 
    88 
    89 /*-------------------------------------------------------------------*//*!
    89 /*-------------------------------------------------------------------*//*!
    91 * \param	
    91 * \param	
    92 * \return	
    92 * \return	
    93 * \note		
    93 * \note		
    94 *//*-------------------------------------------------------------------*/
    94 *//*-------------------------------------------------------------------*/
    95 
    95 
    96 EXPORT_C VGUErrorCode vguComputeWarpQuadToSquare(VGfloat sx0, VGfloat sy0, VGfloat sx1, VGfloat sy1, VGfloat sx2, VGfloat sy2, VGfloat sx3, VGfloat sy3, VGfloat * matrix)
    96 EXPORT_C VGUErrorCode vguComputeWarpQuadToSquare(VGfloat sx0, VGfloat sy0, VGfloat sx1, VGfloat sy1, VGfloat sx2, VGfloat sy2, VGfloat sx3, VGfloat sy3, VGfloat * matrix) __SOFTFP
    97 {
    97 {
    98 return do_vguComputeWarpQuadToSquare(sx0, sy0, sx1, sy1, sx2, sy2, sx3, sy3, matrix);
    98 return do_vguComputeWarpQuadToSquare(sx0, sy0, sx1, sy1, sx2, sy2, sx3, sy3, matrix);
    99 }
    99 }
   100 
   100 
   101 /*-------------------------------------------------------------------*//*!
   101 /*-------------------------------------------------------------------*//*!
   103 * \param	
   103 * \param	
   104 * \return	
   104 * \return	
   105 * \note		
   105 * \note		
   106 *//*-------------------------------------------------------------------*/
   106 *//*-------------------------------------------------------------------*/
   107 
   107 
   108 EXPORT_C VGUErrorCode vguComputeWarpSquareToQuad(VGfloat dx0, VGfloat dy0, VGfloat dx1, VGfloat dy1, VGfloat dx2, VGfloat dy2, VGfloat dx3, VGfloat dy3, VGfloat * matrix)
   108 EXPORT_C VGUErrorCode vguComputeWarpSquareToQuad(VGfloat dx0, VGfloat dy0, VGfloat dx1, VGfloat dy1, VGfloat dx2, VGfloat dy2, VGfloat dx3, VGfloat dy3, VGfloat * matrix) __SOFTFP
   109 {
   109 {
   110 return do_vguComputeWarpSquareToQuad(dx0, dy0, dx1, dy1, dx2, dy2, dx3, dy3, matrix);
   110 return do_vguComputeWarpSquareToQuad(dx0, dy0, dx1, dy1, dx2, dy2, dx3, dy3, matrix);
   111 }
   111 }
   112 
   112 
   113 /*-------------------------------------------------------------------*//*!
   113 /*-------------------------------------------------------------------*//*!
   115 * \param	
   115 * \param	
   116 * \return	
   116 * \return	
   117 * \note		
   117 * \note		
   118 *//*-------------------------------------------------------------------*/
   118 *//*-------------------------------------------------------------------*/
   119 
   119 
   120 EXPORT_C VGUErrorCode vguComputeWarpQuadToQuad(VGfloat dx0, VGfloat dy0, VGfloat dx1, VGfloat dy1, VGfloat dx2, VGfloat dy2, VGfloat dx3, VGfloat dy3, VGfloat sx0, VGfloat sy0, VGfloat sx1, VGfloat sy1, VGfloat sx2, VGfloat sy2, VGfloat sx3, VGfloat sy3, VGfloat * matrix)
   120 EXPORT_C VGUErrorCode vguComputeWarpQuadToQuad(VGfloat dx0, VGfloat dy0, VGfloat dx1, VGfloat dy1, VGfloat dx2, VGfloat dy2, VGfloat dx3, VGfloat dy3, VGfloat sx0, VGfloat sy0, VGfloat sx1, VGfloat sy1, VGfloat sx2, VGfloat sy2, VGfloat sx3, VGfloat sy3, VGfloat * matrix) __SOFTFP
   121 {
   121 {
   122 return do_vguComputeWarpQuadToQuad(dx0, dy0, dx1, dy1, dx2, dy2, dx3, dy3, sx0, sy0, sx1, sy1, sx2, sy2, sx3, sy3, matrix);
   122 return do_vguComputeWarpQuadToQuad(dx0, dy0, dx1, dy1, dx2, dy2, dx3, dy3, sx0, sy0, sx1, sy1, sx2, sy2, sx3, sy3, matrix);
   123 }
   123 }
   124 
   124 
   125 }
   125 }