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

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? circle.c

?? STM32+Grlib
?? C
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
//*****************************************************************************
//
// circle.c - Routines for drawing circles.
//
// Copyright (c) 2007-2010 Texas Instruments Incorporated.  All rights reserved.
// Software License Agreement
// 
// Texas Instruments (TI) is supplying this software for use solely and
// exclusively on TI's microcontroller products. The software is owned by
// TI and/or its suppliers, and is protected under applicable copyright
// laws. You may not combine this software with "viral" open-source
// software in order to form a larger program.
// 
// THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
// NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
// NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
// 
// This is part of revision 5821 of the Stellaris Graphics Library.
//
//*****************************************************************************

#include "driverlib/debug.h"
#include "grlib/grlib.h"

//*****************************************************************************
//
//! \addtogroup primitives_api
//! @{
//
//*****************************************************************************

//*****************************************************************************
//
//! Draws a 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 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
GrCircleDraw(const tContext *pContext, long lX, long lY, long lRadius)
{
    long lA, lB, lD, lX1, 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 drawn.
    //
    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.
            //
            lX1 = lX - lB;

            //
            // If this column is within the clipping region, then draw a pixel
            // at that position.
            //
            if((lX1 >= pContext->sClipRegion.sXMin) &&
               (lX1 <= pContext->sClipRegion.sXMax))
            {
                GrPixelDraw(pContext, lX1, lY1);
            }

            //
            // Determine the column when adding the B delta.
            //
            lX1 = lX + lB;

            //
            // If this column is within the clipping region, then draw a pixel
            // at that position.
            //
            if((lX1 >= pContext->sClipRegion.sXMin) &&
               (lX1 <= pContext->sClipRegion.sXMax))
            {
                GrPixelDraw(pContext, lX1, 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, it will be the same row as when the A delta was
        // subtracted).
        //
        if((lY1 >= pContext->sClipRegion.sYMin) &&
           (lY1 <= pContext->sClipRegion.sYMax) &&
           (lA != 0))
        {
            //
            // Determine the column when subtracting the B delta.
            //
            lX1 = lX - lB;

            //
            // If this column is within the clipping region, then draw a pixel
            // at that position.
            //
            if((lX1 >= pContext->sClipRegion.sXMin) &&
               (lX1 <= pContext->sClipRegion.sXMax))
            {
                GrPixelDraw(pContext, lX1, lY1);
            }

            //
            // Determine the column when adding the B delta.
            //
            lX1 = lX + lB;

            //
            // If this column is within the clipping region, then draw a pixel
            // at that position.
            //
            if((lX1 >= pContext->sClipRegion.sXMin) &&
               (lX1 <= pContext->sClipRegion.sXMax))
            {
                GrPixelDraw(pContext, lX1, lY1);
            }
        }

        //
        // Only draw the complementary pixels if the A and B deltas are
        // different (otherwise, they describe the same set of pixels).
        //
        if(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.
                //
                lX1 = lX - lA;

                //
                // If this column is within the clipping region, then draw a
                // pixel at that position.
                //
                if((lX1 >= pContext->sClipRegion.sXMin) &&
                   (lX1 <= pContext->sClipRegion.sXMax))
                {
                    GrPixelDraw(pContext, lX1, lY1);
                }

                //
                // Only draw the mirrored pixel if the A delta is non-zero
                // (otherwise, it will be the same pixel).
                //
                if(lA != 0)
                {
                    //
                    // Determine the column when adding the A delta.
                    //
                    lX1 = lX + lA;

                    //
                    // If this column is within the clipping region, then draw
                    // a pixel at that position.
                    //
                    if((lX1 >= pContext->sClipRegion.sXMin) &&
                       (lX1 <= pContext->sClipRegion.sXMax))
                    {
                        GrPixelDraw(pContext, lX1, 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.
                //
                lX1 = lX - lA;

                //
                // If this column is within the clipping region, then draw a
                // pixel at that position.
                //
                if((lX1 >= pContext->sClipRegion.sXMin) &&
                   (lX1 <= pContext->sClipRegion.sXMax))
                {
                    GrPixelDraw(pContext, lX1, lY1);
                }

                //
                // Only draw the mirrored pixel if the A delta is non-zero
                // (otherwise, it will be the same pixel).
                //
                if(lA != 0)
                {
                    //
                    // Determine the column when adding the A delta.
                    //
                    lX1 = lX + lA;

                    //
                    // If this column is within the clipping region, then draw
                    // a pixel at that position.
                    //
                    if((lX1 >= pContext->sClipRegion.sXMin) &&
                       (lX1 <= pContext->sClipRegion.sXMax))
                    {
                        GrPixelDraw(pContext, lX1, 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
        {
            //

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久午夜精品| 欧美电影免费观看高清完整版在| 国产三级欧美三级| 国产一区二区三区久久久 | 日本在线观看不卡视频| 欧美高清精品3d| 日韩av一区二区三区| 91精品婷婷国产综合久久| 日本欧洲一区二区| 久久久激情视频| 97se亚洲国产综合自在线不卡| 亚洲欧美韩国综合色| 欧美综合一区二区| 蜜臀av一区二区三区| 国产午夜三级一区二区三| 99精品久久只有精品| 天天免费综合色| 精品国内二区三区| 99v久久综合狠狠综合久久| 一区二区三区中文字幕精品精品| 欧美日韩在线不卡| 激情图区综合网| 亚洲精品国产a| 日韩精品中文字幕一区二区三区 | 一区二区三区鲁丝不卡| 欧美日韩和欧美的一区二区| 免费成人在线播放| 一区二区中文字幕在线| 欧美美女黄视频| 国产成人精品免费一区二区| 亚洲第一二三四区| 国产日产欧美一区二区视频| 欧美性生活一区| 高清在线不卡av| 亚洲一区在线看| 国产欧美日韩卡一| 欧美日韩成人综合天天影院| 国产成人综合亚洲91猫咪| 亚洲一级二级三级在线免费观看| 欧美精品一区二区在线观看| 色婷婷狠狠综合| 国产成人午夜99999| 丝袜美腿亚洲综合| √…a在线天堂一区| 欧美精品一区二区三区在线播放| 日本道色综合久久| 国产成a人亚洲精| 日产欧产美韩系列久久99| 亚洲日穴在线视频| 日本一区二区三区国色天香| 69堂国产成人免费视频| 99久久免费国产| 国产一区欧美二区| 日韩国产精品大片| 亚洲美女在线国产| 国产精品久久久久久户外露出 | 日韩欧美国产小视频| 91福利视频网站| 不卡影院免费观看| 国产米奇在线777精品观看| 五月天激情小说综合| 一区二区免费看| 中文字幕一区二区三区色视频| 精品日韩欧美在线| 7777精品久久久大香线蕉| 欧美亚洲综合色| 91麻豆福利精品推荐| 成人国产在线观看| 成人影视亚洲图片在线| 国产一区二区三区黄视频 | 欧美日韩在线观看一区二区| 97久久超碰国产精品电影| 国产激情一区二区三区| 韩国精品免费视频| 精品一区二区免费在线观看| 青青草伊人久久| 丝袜a∨在线一区二区三区不卡| 夜夜爽夜夜爽精品视频| 一区二区三区在线观看网站| 亚洲图片激情小说| 亚洲精品你懂的| 亚洲综合一区二区三区| 亚洲精品欧美专区| 亚洲图片自拍偷拍| 亚洲精品中文字幕乱码三区| 亚洲一区二区三区四区在线观看 | 亚洲男人天堂一区| 亚洲精品美腿丝袜| 亚洲一区二区在线免费观看视频| 亚洲国产一区视频| 日韩电影在线看| 免费成人美女在线观看| 国产乱子伦视频一区二区三区 | 成人av网址在线观看| 成人app网站| 欧美性xxxxxxxx| 日韩午夜三级在线| 久久影院电视剧免费观看| 国产色婷婷亚洲99精品小说| 国产精品午夜免费| 一区二区三区美女视频| 日韩精品一区第一页| 国产精品91一区二区| www.色综合.com| 欧美三级电影精品| 欧美v亚洲v综合ⅴ国产v| 亚洲国产成人在线| 亚洲综合免费观看高清完整版在线 | 国产成人在线网站| a美女胸又www黄视频久久| 色就色 综合激情| 欧美一区二区三区视频免费播放 | av在线不卡电影| 欧美午夜宅男影院| 日韩精品中文字幕在线不卡尤物 | 3atv在线一区二区三区| 精品国产髙清在线看国产毛片| 欧美激情综合五月色丁香| 一区二区三区毛片| 国产在线一区观看| 欧洲另类一二三四区| 欧美r级电影在线观看| 亚洲男人的天堂一区二区| 蜜臀国产一区二区三区在线播放| 成人免费av资源| 51精品国自产在线| 国产精品毛片久久久久久| 日本va欧美va精品发布| 97国产一区二区| 精品成人一区二区三区四区| 一级特黄大欧美久久久| 国内外精品视频| 欧美日本一区二区| 国产精品久久久久久久久免费丝袜 | 亚洲天堂网中文字| 卡一卡二国产精品| 欧美三级韩国三级日本一级| 国产精品视频免费| 精品一区二区免费看| 色婷婷激情一区二区三区| 国产午夜精品一区二区三区嫩草| 天天影视涩香欲综合网| 97精品久久久午夜一区二区三区 | 亚洲美女免费视频| 国产69精品久久99不卡| 欧美一区二区三区视频| 亚洲一区二区三区四区的 | 亚洲激情图片小说视频| 国产成人激情av| 精品欧美乱码久久久久久| 午夜精品久久久久久久久| 99re视频精品| ...中文天堂在线一区| 大胆亚洲人体视频| 久久综合九色综合97_久久久| 日韩电影免费在线看| 在线精品亚洲一区二区不卡| 亚洲婷婷国产精品电影人久久| 豆国产96在线|亚洲| 久久久久青草大香线综合精品| 全国精品久久少妇| 欧美二区三区的天堂| 日韩精彩视频在线观看| 欧美另类久久久品| 亚洲午夜电影在线观看| 欧美日韩美女一区二区| 亚洲一区二区三区爽爽爽爽爽| 日本精品视频一区二区| 自拍偷自拍亚洲精品播放| 91免费视频大全| 亚洲色图制服诱惑| 欧美中文一区二区三区| 亚洲色图.com| 91麻豆精品一区二区三区| 亚洲欧美日韩一区二区三区在线观看| 不卡欧美aaaaa| 亚洲少妇最新在线视频| 在线观看三级视频欧美| 亚洲国产另类精品专区| 欧美一区二区三区在线观看视频| 热久久免费视频| 久久免费午夜影院| 高清成人免费视频| 亚洲视频每日更新| 欧美日韩中文国产| 视频一区国产视频| 精品日韩成人av| 国产成人aaa| 亚洲自拍欧美精品| 69堂成人精品免费视频| 精品一区二区免费视频| 国产精品美女久久久久久| 色视频一区二区| 日韩av中文字幕一区二区| 久久中文娱乐网| 91麻豆精品在线观看| 日韩中文字幕亚洲一区二区va在线 | 同产精品九九九| 久久亚洲精品国产精品紫薇| 91在线免费播放|