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

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

?? ugldemo.c

?? S1D13506windml下的驅(qū)動程序,支持vxworks5.4 支持tornado2.0 windml2.0
?? C
?? 第 1 頁 / 共 2 頁
字號:

    uglFontFindString(fontDrvId, "familyName=Courier; pixelSize = 12", &fixedFontDef);

    if ((fontFixed = uglFontCreate(fontDrvId, &fixedFontDef)) == UGL_NULL)
        {
 	printf("Font not found. Exiting.\n");
	return;
        }

    /* Obtain the demensions of the display */

    uglInfo(devId, UGL_FB_INFO_REQ, &fbInfo);
    displayWidth = fbInfo.width;
    displayHeight = fbInfo.height;

    /* Setup random points */

    srand(6);
    numRandomPoints = 2000;
    randomData = (int *)UGL_MALLOC(2 * numRandomPoints * sizeof(int));
    for (i = 0; i < numRandomPoints * 2; i += 2)
	{
	randomData[i] = (rand() % displayWidth);
	randomData[i + 1] = (rand() % displayHeight);
	}

    /* 	Initialize colors. */

    uglColorAlloc (devId, &colorTable[BLACK].rgbColor, UGL_NULL, 
                   &colorTable[BLACK].uglColor, 1);
    uglColorAlloc(devId, &colorTable[BLUE].rgbColor, UGL_NULL,
                  &colorTable[BLUE].uglColor, 1);
    uglColorAlloc(devId, &colorTable[GREEN].rgbColor, UGL_NULL,
                  &colorTable[GREEN].uglColor, 1);
    uglColorAlloc(devId, &colorTable[CYAN].rgbColor, UGL_NULL,
                  &colorTable[CYAN].uglColor, 1);
    uglColorAlloc(devId, &colorTable[RED].rgbColor, UGL_NULL,
                  &colorTable[RED].uglColor, 1);
    uglColorAlloc(devId, &colorTable[MAGENTA].rgbColor, UGL_NULL,
                  &colorTable[MAGENTA].uglColor, 1);
    uglColorAlloc(devId, &colorTable[BROWN].rgbColor, UGL_NULL,
                  &colorTable[BROWN].uglColor, 1);
    uglColorAlloc(devId, &colorTable[LIGHTGRAY].rgbColor, UGL_NULL,
                  &colorTable[LIGHTGRAY].uglColor, 1);
    uglColorAlloc(devId, &colorTable[DARKGRAY].rgbColor, UGL_NULL,
                  &colorTable[DARKGRAY].uglColor, 1);
    uglColorAlloc(devId, &colorTable[LIGHTBLUE].rgbColor, UGL_NULL,
                  &colorTable[LIGHTBLUE].uglColor, 1);
    uglColorAlloc(devId, &colorTable[LIGHTGREEN].rgbColor, UGL_NULL,
                  &colorTable[LIGHTGREEN].uglColor, 1);
    uglColorAlloc(devId, &colorTable[LIGHTCYAN].rgbColor, UGL_NULL,
                  &colorTable[LIGHTCYAN].uglColor, 1);
    uglColorAlloc(devId, &colorTable[LIGHTRED].rgbColor, UGL_NULL,
                  &colorTable[LIGHTRED].uglColor, 1);
    uglColorAlloc(devId, &colorTable[LIGHTMAGENTA].rgbColor, UGL_NULL,
                  &colorTable[LIGHTMAGENTA].uglColor, 1);
    uglColorAlloc(devId, &colorTable[YELLOW].rgbColor,  UGL_NULL,
                  &colorTable[YELLOW].uglColor, 1);
    uglColorAlloc(devId, &colorTable[WHITE].rgbColor,  UGL_NULL,
                  &colorTable[WHITE].uglColor, 1);

    /* Create Region */

    regionId = uglRegionCreate ();
    uglBackgroundColorSet(gc, colorTable[BLACK].uglColor);
    uglForegroundColorSet(gc, colorTable[LIGHTGREEN].uglColor);
    uglTextSizeGet(fontDialog, &textWidth, &textHeight, 
		   -1, regionMessage);
    uglFontSet(gc, fontDialog);
    uglTextDraw(gc, (displayWidth - textWidth) / 2, 
                    (displayHeight - textHeight) / 3, -1, regionMessage);

    rect.left = rect.top = 0;
    rect.right = displayWidth - 1;
    rect.bottom = displayHeight - 1;
    uglRegionRectInclude (regionId, &rect);

    rect.right = ((displayWidth - textWidth) / 2) + textWidth - 1;
    rect.bottom = ((displayHeight - textHeight) / 3) + textHeight - 1;
    rect.left = ((displayWidth - textWidth) / 2 + 1);
    rect.top = ((displayHeight - textHeight) / 3 + 1);
    uglRegionRectExclude (regionId, &rect);
    uglClipRegionSet (gc, regionId);

    /* Create the brick pattern */

    patternDib.width = patternDib.stride = patternData.width;
    patternDib.height = patternData.height;
    patternDib.pImage = patternData.data;
    patternDdb = uglMonoBitmapCreate(devId, &patternDib, 
                                        UGL_DIB_INIT_DATA, 0, UGL_NULL);

    /* Create standard and transparent DDBs */

    colorData = (UGL_COLOR *)UGL_MALLOC(32 * 32 * sizeof(UGL_COLOR));

    for (i = 0; i < 32 * 32; i++)
	colorData[i] = colorTable[transparentData[i]].uglColor;

    (UGL_COLOR *)transDib.pImage = colorData;
    transDib.colorFormat = UGL_DEVICE_COLOR_32;
    transDib.clutSize = 0;
    transDib.pClut = UGL_NULL;
    transDib.imageFormat = UGL_DIRECT;
    transDib.width = transDib.height = transDib.stride = 32;

    stdDdb = uglBitmapCreate(devId, &transDib, UGL_DIB_INIT_DATA, 0,
                                 UGL_NULL);

    transMdib.width = transMdib.stride = transMdib.height = 32;
    transMdib.pImage = transparentMask;

    transDdb = uglTransBitmapCreate(devId, &transDib, &transMdib,
                                        UGL_DIB_INIT_DATA, 0, UGL_NULL);

    /* Create the cursor */

    if (mode >= 0 && eventServiceId != UGL_NULL)
	{
	uglCursorInit (devId, 32, 32, displayWidth / 2, displayHeight / 2);
	cursorDib.width = cursorDib.height = cursorDib.stride = 32;
	cursorDib.hotSpot.x = cursorDib.hotSpot.y = 16;
	cursorDib.pImage = cursorData;
	cursorDib.clutSize = 2;
	cursorDib.pClut = cursorClut;
	cursorDdb = uglCursorBitmapCreate(devId, &cursorDib);
	uglCursorImageSet (devId, cursorDdb);

	uglCursorOn(devId);
	}

    /* Initialization finished, drawing begins */

    ClearScreen(gc);

    if(pause(mode) < 0)
	{
	cleanUp(mode);
	return;
	}

    /* BitmapWrite test */

    uglBitmapWrite(devId, &transDib, 0,0,31,31,UGL_DISPLAY_ID,100,100);

    if(pause(mode) < 0)
	{
	cleanUp(mode);
	return;
	}

    /* DDB blt */

    ClearScreen(gc);

    uglBatchStart(gc);

    for (i = 0; i < 1000; i++)
	uglBitmapBlt(gc, stdDdb,0,0,31,31,UGL_DEFAULT_ID, randomData[i],randomData[i+1]);

    uglBatchEnd(gc);

    if(pause(mode) < 0)
	{
	cleanUp(mode);
	return;
	}

    /* TDDB blt */

    ClearScreen(gc);

    uglBatchStart(gc);

    for (i = 0; i < 1000; i++)
	uglBitmapBlt(gc, transDdb,0,0,31,31,UGL_DEFAULT_ID, randomData[i],randomData[i+1]);

    uglBatchEnd(gc);

    if(pause(mode) < 0)
	{
	cleanUp(mode);
	return;
	}

    /* Simple lines */

    ClearScreen(gc);

    uglBatchStart(gc);

    index = 0;
    for (i = 0; i < numRandomPoints / 2; i++)
	{
	uglForegroundColorSet(gc, colorTable[ i % 16].uglColor);
	uglLine(gc, randomData[index], randomData[index + 1],
		    randomData[index + 2], randomData[index + 3]);
	index += 4;
	}

    uglBatchEnd(gc);

    if(pause(mode) < 0)
	{
	cleanUp(mode);
	return;
	}

    /* Dashed lines */

    ClearScreen(gc);

    uglBatchStart(gc);

    uglLineStyleSet(gc, UGL_LINE_STYLE_DASHED);
    index = 0;
    for (i = 0; i < numRandomPoints / 2; i++)
	{
	uglForegroundColorSet(gc, colorTable[ i % 16].uglColor);
	uglLine(gc, randomData[index], randomData[index + 1],
		    randomData[index + 2], randomData[index + 3]);
	index += 4;
	}

    uglBatchEnd(gc);

    if(pause(mode) < 0)
	{
	cleanUp(mode);
	return;
	}

    /* Wide solid lines */
    
    ClearScreen(gc);

    uglBatchStart(gc);

    index = 0;
    for (i = 0; i < numRandomPoints / 2; i++)
	{
	uglForegroundColorSet(gc, colorTable[ i % 15 + 1].uglColor);
	uglLineWidthSet(gc, (i % 6) + 1);
	uglLine(gc, randomData[index], randomData[index + 1],
		    randomData[index + 2], randomData[index + 3]);
	index += 4;
	}

    uglBatchEnd(gc);

    if(pause(mode) < 0)
	{
	cleanUp(mode);
	return;
	}

    /* Wide dashed lines */

    ClearScreen(gc);

    uglBatchStart(gc);

    uglLineStyleSet(gc, UGL_LINE_STYLE_DASHED);
    index = 0;
    for (i = 0; i < numRandomPoints / 2; i++)
	{
	uglForegroundColorSet(gc, colorTable[ i % 15 + 1].uglColor);
	uglLineWidthSet(gc, (i % 6) + 1);
	uglLine(gc, randomData[index], randomData[index + 1],
		    randomData[index + 2], randomData[index + 3]);
	index += 4;
	}

    uglBatchEnd(gc);

    if(pause(mode) < 0)
	{
	cleanUp(mode);
	return;
	}

    /* Filled rectangles */

    ClearScreen(gc);

    uglBatchStart(gc);

    index = 0;
    for (i = 0; i < numRandomPoints / 2; i++)
	{
	int left = min(randomData[index], randomData[index + 2]);
	int right = max(randomData[index], randomData[index + 2]);
	int top = min(randomData[index + 1], randomData[index + 3]);
	int bottom = max(randomData[index + 1], randomData[index + 3]);
	uglForegroundColorSet(gc, colorTable[ i % 15 + 1].uglColor);
	uglBackgroundColorSet(gc, colorTable[ 15 - (i % 15)].uglColor);
	uglLineWidthSet(gc, (i % 6) + 1);
	uglRectangle(gc, left, top , right, bottom);
	index += 4;
	}

    uglBatchEnd(gc);

    if(pause(mode) < 0)
	{
	cleanUp(mode);
	return;
	}

    /* Rectangles filled with a pattern */

    ClearScreen(gc);

    uglBatchStart(gc);

    uglFillPatternSet(gc, patternDdb);

    index = 0;
    for (i = 0; i < numRandomPoints / 15; i++)
	{
	int left = min(randomData[index], randomData[index + 2]);
	int right = max(randomData[index], randomData[index + 2]);
	int top = min(randomData[index + 1], randomData[index + 3]);
	int bottom = max(randomData[index + 1], randomData[index + 3]);
	uglForegroundColorSet(gc, colorTable[ i % 15 + 1].uglColor);
	uglBackgroundColorSet(gc, colorTable[ 15 - (i % 15)].uglColor);
	uglLineWidthSet(gc, i % 6 + 1);
	uglRectangle(gc, left, top , right, bottom);
	index += 4;
	}

    uglFillPatternSet(gc, 0);
    uglBatchEnd(gc);

    if(pause(mode) < 0)
	{
	cleanUp(mode);
	return;
	}

    /* Filled polygons */

    ClearScreen(gc);

    uglBatchStart(gc);

    index = 0;
    for (i = 0; i < numRandomPoints / 10; i++)
	{
	uglForegroundColorSet(gc, colorTable[ i % 15 + 1].uglColor);
	uglBackgroundColorSet(gc, colorTable[ 15 - (i % 15)].uglColor);
	randomData[index + 18] = randomData[index];
	randomData[index + 19] = randomData[index + 1];
	uglPolygon(gc, 10, &randomData[index]);
	index += 20;
	}

    uglBatchEnd(gc);

    if(pause(mode) < 0)
	{
	cleanUp(mode);
	return;
	}

    /* Polygons filled with a pattern */

    ClearScreen(gc);

    uglBatchStart(gc);

    uglFillPatternSet(gc, patternDdb);

    index = 0;
    for (i = 0; i < numRandomPoints / 22; i++)
	{
	uglForegroundColorSet(gc, colorTable[ i % 15 + 1].uglColor);
	uglBackgroundColorSet(gc, colorTable[ 15 - (i % 15)].uglColor);
	uglLineWidthSet(gc, i % 4 + 1);
	randomData[index + 18] = randomData[index];
	randomData[index + 19] = randomData[index + 1];
	uglPolygon(gc, 10, &randomData[index]);
	index += 20;
	}

    uglFillPatternSet(gc, 0);
    uglBatchEnd(gc);

    if(pause(mode) < 0)
	{
	cleanUp(mode);
	return;
	}

    /* Text */

    ClearScreen(gc);

    uglBatchStart(gc);

    y = 0;
    textpage = 0;

    for (i = 0; i < 1000; i++)
	{
	uglForegroundColorSet(gc, colorTable[ i % 15 + 1].uglColor);
	uglBackgroundColorSet(gc, colorTable[ 15 - (i % 15)].uglColor);

	switch (i % 3)
	    {
	    case 0:
		uglFontSet(gc, fontSystem);
		uglTextSizeGet(fontSystem, UGL_NULL, &tmp, -1, fontTestText);
		break;

	    case 1:
		uglFontSet(gc, fontDialog);
		uglTextSizeGet(fontDialog, UGL_NULL, &tmp, -1, fontTestText);
		break;

	    case 2:
		uglFontSet(gc, fontFixed);
		uglTextSizeGet(fontFixed, UGL_NULL, &tmp, -1, fontTestText);
		break;

	    }

	uglTextDraw(gc, 0, y, -1, fontTestText);
	y += tmp;

	if (y >= displayHeight)
	    {
	    y = 0;
	    textpage++;
	    }
	}

    uglBatchEnd(gc);

    if(pause(mode) < 0)
	{
	cleanUp(mode);
	return;
	}

    /* Filled Ellipses */

    ClearScreen(gc);

    uglBatchStart(gc);

    index = 0;
    for (i = 0; i < numRandomPoints / 2; i++)
	{
	int left = min(randomData[index], randomData[index + 2]);
	int right = max(randomData[index], randomData[index + 2]);
	int top = min(randomData[index + 1], randomData[index + 3]);
	int bottom = max(randomData[index + 1], randomData[index + 3]);
	uglForegroundColorSet(gc, colorTable[ i % 16].uglColor);
	uglBackgroundColorSet(gc, colorTable[ 15 - (i % 15)].uglColor);
	uglEllipse(gc, left, top, right, bottom, 0, 0, 0, 0);
	index += 4;
	}
    uglBatchEnd(gc);

    if(pause(mode) < 0)
	{
	cleanUp(mode);
	return;
	}

    /* Pie Shapes */

    ClearScreen(gc);

    uglBatchStart(gc);

    index = 0;
    for (i = 0; i < numRandomPoints / 4; i++)
	{
	int left = min(randomData[index], randomData[index + 2]);
	int right = max(randomData[index], randomData[index + 2]);
	int top = min(randomData[index + 1], randomData[index + 3]);
	int bottom = max(randomData[index + 1], randomData[index + 3]);
	uglForegroundColorSet(gc, colorTable[ i % 16].uglColor);
	uglBackgroundColorSet(gc, colorTable[ 15 - (i % 15)].uglColor);
	uglEllipse(gc, left, top, right, bottom,
		       randomData[index + 4], randomData[index + 5],
		       randomData[index + 6], randomData[index + 7]);
	index += 8;
	}
    uglBatchEnd(gc);

    if(pause(mode) < 0)
	{
	cleanUp(mode);
	return;
	}

    /* Stretch Blits */

    ClearScreen(gc);

    uglBitmapStretchBlt(gc,stdDdb,0,0,31,31,UGL_NULL,100,100,200,150);
	
    if(pause(mode) < 0)
	{
	cleanUp(mode);
	return;
	}

    ClearScreen(gc);

    uglBitmapStretchBlt(gc,stdDdb,0,0,31,31,UGL_NULL,100,100,150,200);
	
    if(pause(mode) < 0)
	{
	cleanUp(mode);
	return;
	}

    ClearScreen(gc);

    uglBitmapStretchBlt(gc,stdDdb,0,0,31,31,UGL_NULL,0,0,
			 displayWidth-1, displayHeight-1);

    if(pause(mode) < 0)
	{
	cleanUp(mode);
	return;
	}

    ClearScreen(gc);

    /* Clean Up */
    cleanUp(mode);

    return;
    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲夂夂婷婷色拍ww47| av一二三不卡影片| 成人精品gif动图一区| 99国产精品久久久久久久久久久| 4438x成人网最大色成网站| 久久九九影视网| 免费一级片91| 色综合久久中文综合久久牛| 久久亚洲私人国产精品va媚药| 亚洲精品视频一区二区| 国产精品一二三四区| 7777精品伊人久久久大香线蕉最新版| 亚洲欧美综合色| 国产精品中文欧美| 日韩欧美国产不卡| 偷拍一区二区三区| 在线观看一区不卡| 亚洲精品乱码久久久久久久久| 韩国毛片一区二区三区| 91精品国产综合久久久久久漫画 | 国产精品12区| 欧美丰满一区二区免费视频| 亚洲自拍偷拍网站| 日韩免费电影网站| 婷婷开心激情综合| 在线视频国内自拍亚洲视频| 亚洲同性同志一二三专区| 国产成人在线免费| 国产亚洲精品福利| 国产suv精品一区二区三区| 久久伊人蜜桃av一区二区| 精品中文av资源站在线观看| 欧美不卡123| 国产一区二区三区高清播放| 欧美r级电影在线观看| 日本网站在线观看一区二区三区| 欧美日本一区二区| 欧美aa在线视频| 日韩你懂的在线观看| 激情综合网最新| 久久综合久久综合亚洲| 国产福利91精品一区二区三区| 久久午夜国产精品| 大桥未久av一区二区三区中文| 亚洲国产激情av| 色一情一乱一乱一91av| 夜夜精品浪潮av一区二区三区| 在线观看欧美黄色| 蜜臀av一区二区在线观看| 精品久久人人做人人爱| 高清视频一区二区| 亚洲美女精品一区| 制服视频三区第一页精品| 日本不卡在线视频| 国产亚洲短视频| 色综合欧美在线| 五月婷婷另类国产| 久久久久久久久99精品| jizzjizzjizz欧美| 亚洲午夜av在线| 精品国内片67194| 成人免费毛片a| 日韩一区欧美二区| 国产欧美一区二区精品秋霞影院| 色婷婷综合中文久久一本| 日日摸夜夜添夜夜添精品视频 | 国产精品久久免费看| 日本韩国欧美三级| 久久国产综合精品| 国产精品大尺度| 91精品一区二区三区久久久久久| 国产一区二区三区久久悠悠色av| 亚洲男人电影天堂| 精品少妇一区二区三区免费观看 | 狠狠色狠狠色综合| 亚洲视频电影在线| 日韩欧美色综合网站| av一区二区三区黑人| 日日夜夜精品免费视频| 亚洲四区在线观看| 久久尤物电影视频在线观看| 欧美在线小视频| 成人午夜av在线| 精品综合免费视频观看| 亚洲精品国产视频| 欧美国产丝袜视频| 日韩免费一区二区| 欧美日韩在线播放一区| 不卡视频在线看| 极品美女销魂一区二区三区| 亚洲国产精品精华液网站| 国产精品美女久久久久高潮| 欧美一区二区三区免费视频| 色狠狠综合天天综合综合| 国产一区二区精品久久| 日韩精品91亚洲二区在线观看| 中文字幕在线观看不卡视频| 久久先锋影音av| 欧美成人官网二区| 欧美一区三区二区| 欧美老女人第四色| 欧美在线播放高清精品| 99久久久精品免费观看国产蜜| 国产呦萝稀缺另类资源| 久久精品国产亚洲aⅴ| 亚洲123区在线观看| 一区二区三区在线播放| 国产精品女人毛片| 亚洲国产精品激情在线观看| 精品毛片乱码1区2区3区| 777午夜精品视频在线播放| 欧美视频在线观看一区| 欧洲人成人精品| 欧美午夜电影网| 欧美在线观看一区二区| 在线观看免费成人| 欧美日韩综合不卡| 欧美日韩国产综合视频在线观看| 在线亚洲一区二区| 欧美影院一区二区三区| 欧美吞精做爰啪啪高潮| 777精品伊人久久久久大香线蕉| 欧美蜜桃一区二区三区| 欧美日韩国产影片| 欧美一区二区在线观看| 精品成人佐山爱一区二区| 精品日韩在线观看| 国产日本欧洲亚洲| 最新欧美精品一区二区三区| 亚洲伦在线观看| 天天亚洲美女在线视频| 激情都市一区二区| 成人高清av在线| 在线观看日韩精品| 欧美一级精品在线| 久久久美女毛片| 亚洲欧美视频一区| 日精品一区二区| 国产麻豆精品95视频| 成人av电影在线播放| 91精品福利视频| 日韩欧美在线网站| 中文字幕第一区综合| 亚洲人吸女人奶水| 男男成人高潮片免费网站| 高清国产一区二区| 欧美综合一区二区| 精品处破学生在线二十三| 亚洲欧洲无码一区二区三区| 日韩制服丝袜先锋影音| 久久99精品一区二区三区三区| 粉嫩欧美一区二区三区高清影视| 色欧美乱欧美15图片| 欧美一区二区福利在线| 中文字幕+乱码+中文字幕一区| 一区二区三区四区在线播放 | 欧美xxxx老人做受| 18成人在线观看| 免费黄网站欧美| 91在线视频网址| 日韩欧美区一区二| 亚洲午夜激情av| 国产成人av在线影院| 56国语精品自产拍在线观看| 国产日韩视频一区二区三区| 天堂av在线一区| 91影院在线观看| 久久亚洲精品国产精品紫薇| 夜夜嗨av一区二区三区| 国产不卡视频一区二区三区| 在线成人免费视频| 专区另类欧美日韩| 国产美女一区二区三区| 欧美精选午夜久久久乱码6080| 国产精品天干天干在线综合| 免费高清在线一区| 欧美三级视频在线| 国产精品国产三级国产a| 经典三级在线一区| 777亚洲妇女| 亚洲自拍偷拍综合| 91小视频在线免费看| 中文字幕欧美国产| 国产在线精品一区二区三区不卡| 欧美日韩一二三| 亚洲黄网站在线观看| 99久久婷婷国产精品综合| 久久久精品日韩欧美| 毛片av一区二区| 欧美日韩国产综合久久| 一级精品视频在线观看宜春院| 成人av在线影院| 日本一区二区免费在线观看视频| 久色婷婷小香蕉久久| 日韩欧美一区二区视频| 日本在线观看不卡视频| 欧美高清一级片在线| 婷婷中文字幕一区三区| 欧美精品一卡二卡| 日韩国产欧美视频|