亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? circle.c

?? STM32+Grlib
?? C
?? 第 1 頁 / 共 2 頁
字號:
            // Since the error term is non-negative, adjust it based on a move
            // in both the A and B deltas.
            //
            lD += (4 * (lA - lB)) + 10;

            //
            // Decrement the B delta.
            //
            lB -= 1;
        }

        //
        // Increment the A delta.
        //
        lA++;
    }
}

//*****************************************************************************
//
//! Draws a filled circle.
//!
//! \param pContext is a pointer to the drawing context to use.
//! \param lX is the X coordinate of the center of the circle.
//! \param lY is the Y coordinate of the center of the circle.
//! \param lRadius is the radius of the circle.
//!
//! This function draws a filled circle, utilizing the Bresenham circle drawing
//! algorithm.  The extent of the circle is from \e lX - \e lRadius to \e lX +
//! \e lRadius and \e lY - \e lRadius to \e lY + \e lRadius, inclusive.
//!
//! \return None.
//
//*****************************************************************************
void
GrCircleFill(const tContext *pContext, long lX, long lY, long lRadius)
{
    long lA, lB, lD, lX1, lX2, lY1;

    //
    // Check the arguments.
    //
    ASSERT(pContext);

    //
    // Initialize the variables that control the Bresenham circle drawing
    // algorithm.
    //
    lA = 0;
    lB = lRadius;
    lD = 3 - (2 * lRadius);

    //
    // Loop until the A delta is greater than the B delta, meaning that the
    // entire circle has been filled.
    //
    while(lA <= lB)
    {
        //
        // Determine the row when subtracting the A delta.
        //
        lY1 = lY - lA;

        //
        // See if this row is within the clipping region.
        //
        if((lY1 >= pContext->sClipRegion.sYMin) &&
           (lY1 <= pContext->sClipRegion.sYMax))
        {
            //
            // Determine the column when subtracting the B delta, and move it
            // to the left edge of the clipping region if it is to the left of
            // the clipping region.
            //
            lX1 = lX - lB;
            if(lX1 < pContext->sClipRegion.sXMin)
            {
                lX1 = pContext->sClipRegion.sXMin;
            }

            //
            // Determine the column when adding the B delta, and move it to the
            // right edge of the clipping region if it is to the right of the
            // clipping region.
            //
            lX2 = lX + lB;
            if(lX2 > pContext->sClipRegion.sXMax)
            {
                lX2 = pContext->sClipRegion.sXMax;
            }

            //
            // Draw a horizontal line if this portion of the circle is within
            // the clipping region.
            //
            if(lX1 <= lX2)
            {
                GrLineDrawH(pContext, lX1, lX2, lY1);
            }
        }

        //
        // Determine the row when adding the A delta.
        //
        lY1 = lY + lA;

        //
        // See if this row is within the clipping region, and the A delta is
        // not zero (otherwise, this describes the same row of the circle).
        //
        if((lY1 >= pContext->sClipRegion.sYMin) &&
           (lY1 <= pContext->sClipRegion.sYMax) &&
           (lA != 0))
        {
            //
            // Determine the column when subtracting the B delta, and move it
            // to the left edge of the clipping region if it is to the left of
            // the clipping region.
            //
            lX1 = lX - lB;
            if(lX1 < pContext->sClipRegion.sXMin)
            {
                lX1 = pContext->sClipRegion.sXMin;
            }

            //
            // Determine the column when adding the B delta, and move it to the
            // right edge of the clipping region if it is to the right of the
            // clipping region.
            //
            lX2 = lX + lB;
            if(lX2 > pContext->sClipRegion.sXMax)
            {
                lX2 = pContext->sClipRegion.sXMax;
            }

            //
            // Draw a horizontal line if this portion of the circle is within
            // the clipping region.
            //
            if(lX1 <= lX2)
            {
                GrLineDrawH(pContext, lX1, lX2, lY1);
            }
        }

        //
        // Only draw the complementary lines if the B delta is about to change
        // and the A and B delta are different (otherwise, they describe the
        // same set of pixels).
        //
        if((lD >= 0) && (lA != lB))
        {
            //
            // Determine the row when subtracting the B delta.
            //
            lY1 = lY - lB;

            //
            // See if this row is within the clipping region.
            //
            if((lY1 >= pContext->sClipRegion.sYMin) &&
               (lY1 <= pContext->sClipRegion.sYMax))
            {
                //
                // Determine the column when subtracting the A delta, and move
                // it to the left edge of the clipping regino if it is to the
                // left of the clipping region.
                //
                lX1 = lX - lA;
                if(lX1 < pContext->sClipRegion.sXMin)
                {
                    lX1 = pContext->sClipRegion.sXMin;
                }

                //
                // Determine the column when adding the A delta, and move it to
                // the right edge of the clipping region if it is to the right
                // of the clipping region.
                //
                lX2 = lX + lA;
                if(lX2 > pContext->sClipRegion.sXMax)
                {
                    lX2 = pContext->sClipRegion.sXMax;
                }

                //
                // Draw a horizontal line if this portion of the circle is
                // within the clipping region.
                //
                if(lX1 <= lX2)
                {
                    GrLineDrawH(pContext, lX1, lX2, lY1);
                }
            }

            //
            // Determine the row when adding the B delta.
            //
            lY1 = lY + lB;

            //
            // See if this row is within the clipping region.
            //
            if((lY1 >= pContext->sClipRegion.sYMin) &&
               (lY1 <= pContext->sClipRegion.sYMax))
            {
                //
                // Determine the column when subtracting the A delta, and move
                // it to the left edge of the clipping region if it is to the
                // left of the clipping region.
                //
                lX1 = lX - lA;
                if(lX1 < pContext->sClipRegion.sXMin)
                {
                    lX1 = pContext->sClipRegion.sXMin;
                }

                //
                // Determine the column when adding the A delta, and move it to
                // the right edge of the clipping region if it is to the right
                // of the clipping region.
                //
                lX2 = lX + lA;
                if(lX2 > pContext->sClipRegion.sXMax)
                {
                    lX2 = pContext->sClipRegion.sXMax;
                }

                //
                // Draw a horizontal line if this portion of the circle is
                // within the clipping region.
                //
                if(lX1 <= lX2)
                {
                    GrLineDrawH(pContext, lX1, lX2, lY1);
                }
            }
        }

        //
        // See if the error term is negative.
        //
        if(lD < 0)
        {
            //
            // Since the error term is negative, adjust it based on a move in
            // only the A delta.
            //
            lD += (4 * lA) + 6;
        }
        else
        {
            //
            // Since the error term is non-negative, adjust it based on a move
            // in both the A and B deltas.
            //
            lD += (4 * (lA - lB)) + 10;

            //
            // Decrement the B delta.
            //
            lB -= 1;
        }

        //
        // Increment the A delta.
        //
        lA++;
    }
}

//*****************************************************************************
//
// Close the Doxygen group.
//! @}
//
//*****************************************************************************

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91视频com| 日本电影亚洲天堂一区| 午夜久久电影网| 亚洲自拍偷拍麻豆| 亚洲天堂成人网| 亚洲素人一区二区| 亚洲免费av观看| 亚洲一区二区欧美日韩| 一区二区三区自拍| 亚洲国产综合视频在线观看| 亚洲成人动漫av| 麻豆一区二区99久久久久| 久久er99热精品一区二区| 理论片日本一区| 国产成人自拍网| 一本大道久久a久久综合| 欧美日韩国产精品自在自线| 91精品国产色综合久久| 久久久久久久久久久99999| 国产精品三级久久久久三级| 樱花影视一区二区| 日本欧美一区二区| 国产在线精品一区二区 | 日本精品视频一区二区三区| 91福利精品第一导航| 欧美日韩亚洲综合在线| 欧美一级久久久久久久大片| 亚洲国产高清aⅴ视频| 亚洲综合无码一区二区| 久久91精品国产91久久小草| 成人av网站在线| 欧美精品视频www在线观看| 精品国产免费一区二区三区香蕉| 国产婷婷一区二区| 亚洲激情中文1区| 极品尤物av久久免费看| 国产精品久久久久aaaa| 久久久久亚洲蜜桃| 精品亚洲成a人| 成人午夜电影久久影院| 在线观看91视频| 日韩欧美亚洲国产精品字幕久久久 | 中文字幕国产一区二区| 亚洲人成网站色在线观看| 日本视频一区二区三区| 99国产精品久| 337p粉嫩大胆噜噜噜噜噜91av | 色国产综合视频| 精品国产免费一区二区三区四区 | 国产不卡在线播放| 91精品国产一区二区| 最新热久久免费视频| 国产在线观看免费一区| 51久久夜色精品国产麻豆| 国产精品久久久久影视| 捆绑调教一区二区三区| 欧美日韩第一区日日骚| 中文字幕一区不卡| 国产成人精品一区二| 欧美成人精品二区三区99精品| 一区二区三区国产精品| 99综合电影在线视频| 2020国产精品久久精品美国| 男人操女人的视频在线观看欧美| 97久久超碰国产精品电影| 亚洲国产精品激情在线观看| 国产精品亚洲人在线观看| 久久亚洲一区二区三区明星换脸| 免费在线欧美视频| 91麻豆精品国产自产在线观看一区 | 久久99精品久久久久久国产越南 | 日韩一区国产二区欧美三区| 午夜视频在线观看一区二区| 日韩一级欧美一级| 五月天精品一区二区三区| 在线免费不卡电影| 亚洲a一区二区| 欧美日韩国产高清一区二区三区| 亚洲已满18点击进入久久| 91成人免费网站| 亚洲国产人成综合网站| 欧美日本乱大交xxxxx| 亚洲地区一二三色| 欧美另类videos死尸| 天天色天天操综合| 欧美成人猛片aaaaaaa| 国产精品中文字幕欧美| 国产亚洲精品资源在线26u| 国产精品996| 国产精品久久久久影院老司| 色悠悠亚洲一区二区| 亚洲bt欧美bt精品777| 日韩欧美国产一区二区在线播放| 黑人精品欧美一区二区蜜桃| 久久久不卡网国产精品二区| 成人精品电影在线观看| 亚洲日本欧美天堂| 欧美精品1区2区| 精品在线一区二区三区| 国产欧美日韩不卡| 91丝袜美女网| 日韩vs国产vs欧美| 国产日本亚洲高清| 91福利小视频| 免费观看一级特黄欧美大片| 久久久综合网站| 91在线播放网址| 免费xxxx性欧美18vr| 国产精品色呦呦| 欧美精品久久99| caoporm超碰国产精品| 午夜视黄欧洲亚洲| 亚洲国产精品精华液ab| 欧美精品久久久久久久久老牛影院| 国产一区二区三区四| 亚洲国产美女搞黄色| 久久久久久久一区| 欧美日韩成人激情| 成人综合婷婷国产精品久久蜜臀 | 精品日韩欧美一区二区| 91婷婷韩国欧美一区二区| 免费在线观看视频一区| 亚洲免费观看在线观看| 精品久久一二三区| 在线观看三级视频欧美| 风流少妇一区二区| 免费看精品久久片| 亚洲精品国产视频| 国产精品不卡一区二区三区| 日韩午夜激情av| 欧美日韩一区二区三区四区| 成人aaaa免费全部观看| 精品亚洲国内自在自线福利| 亚洲成人av一区| 亚洲黄色性网站| 国产精品久久毛片av大全日韩| 欧美精品一区二| 日韩欧美高清在线| 欧美精品久久一区| 欧美午夜精品久久久久久孕妇| www.欧美色图| 成人妖精视频yjsp地址| 老司机免费视频一区二区三区| 性感美女极品91精品| 亚洲一区在线观看视频| 一区二区三区在线看| 亚洲男同性视频| 亚洲婷婷综合色高清在线| 国产精品日产欧美久久久久| 国产欧美日韩另类一区| 国产日本欧美一区二区| 国产免费成人在线视频| 精品动漫一区二区三区在线观看| 欧美一区二区精美| 日韩美女一区二区三区四区| 日韩欧美国产一区二区三区| 日韩一区二区三免费高清| 精品久久久久久最新网址| 亚洲精品在线观| 亚洲国产电影在线观看| 中文字幕中文乱码欧美一区二区| 日韩理论片中文av| 一区二区三区资源| 午夜婷婷国产麻豆精品| 日本欧美一区二区在线观看| 久色婷婷小香蕉久久| 国产盗摄一区二区| 99久久精品国产一区二区三区 | 亚洲国产成人高清精品| 亚洲第一会所有码转帖| 日韩中文字幕av电影| 青青草国产精品97视觉盛宴| 久久国产精品无码网站| 国产成人免费在线视频| 色综合天天在线| 制服丝袜激情欧洲亚洲| 久久综合久久久久88| 亚洲天堂av一区| 日韩成人一区二区| 国产精品1区2区| 欧美三级午夜理伦三级中视频| 欧美岛国在线观看| 日本一区二区三区在线不卡| 亚洲一区二区不卡免费| 裸体歌舞表演一区二区| 99久久国产综合精品色伊| 欧美日韩高清一区二区不卡| 精品剧情v国产在线观看在线| 中文字幕一区二区三区在线观看| 亚洲成人一区在线| 国产黄色91视频| 欧美精品日韩综合在线| 国产人成一区二区三区影院| 亚洲高清在线视频| 国产福利精品导航| 91精品国模一区二区三区| 国产精品美女一区二区三区| 日韩电影在线观看电影| 色婷婷综合久久久久中文| 精品99久久久久久|