svgtopt/gfx2d/inc/GfxPolygonRendererP.h
changeset 46 88edb906c587
equal deleted inserted replaced
-1:000000000000 46:88edb906c587
       
     1 /*
       
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Graphics Extension Library header file
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef GFXPOLYGONRENDERERP_H
       
    20 #define GFXPOLYGONRENDERERP_H
       
    21 
       
    22 #include <e32std.h>
       
    23 #include <e32base.h>
       
    24 
       
    25 #include "GfxFloatFixPt.h"
       
    26 #include "GfxColor.h"
       
    27 
       
    28 
       
    29 
       
    30 class TGfxColor;
       
    31 class MGfxPaint;
       
    32 class CGfxEdgeListP;
       
    33 class TGfxRendererInfoP;
       
    34 
       
    35 
       
    36 /**
       
    37  * Implementation of a rendering class for polygons.
       
    38  *
       
    39  *  @lib Gfx2D.lib
       
    40  *  @since 1.0
       
    41  */
       
    42 
       
    43 class TGfxPolygonRendererP
       
    44     {
       
    45     public:
       
    46 
       
    47         /**
       
    48          * constructor
       
    49          */
       
    50                             TGfxPolygonRendererP();
       
    51 
       
    52         /**
       
    53          * initiatize
       
    54          */
       
    55         void                InitializeP( CGfxEdgeListP* aEdgeList,
       
    56                                          TGfxRendererInfoP* aRenderInfo,
       
    57                                          MGfxPaint* aPaint,
       
    58                                          TBool aWindingNoneZero );
       
    59 
       
    60         /**
       
    61          * render scan line
       
    62          */
       
    63         void                RenderScanlineL( TInt aY, TUint32 aAlpha );
       
    64 
       
    65 
       
    66         /**
       
    67          * blit scan line
       
    68          */
       
    69         void                BlitScanline( TUint8* aSrc,
       
    70                                           TInt aY,
       
    71                                           TInt aStart,
       
    72                                           TInt aEnd );
       
    73 
       
    74 
       
    75         /**
       
    76          * draw HLine
       
    77          */
       
    78         static void         DrawHLine( TUint16* aBuf,
       
    79                                        TUint32 aColor,
       
    80                                        TInt aLeftX,
       
    81                                        TInt aWidth );
       
    82 
       
    83     protected:
       
    84 
       
    85 
       
    86 
       
    87         CGfxEdgeListP*      iEdgeList;
       
    88         TGfxRendererInfoP*  iRenderInfo;
       
    89         MGfxPaint*          iPaint;
       
    90 
       
    91 
       
    92 
       
    93         TBool               iWindingNoneZero;
       
    94     };
       
    95 
       
    96 
       
    97 #endif      // GFXPOLYGONRENDERERP_H