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

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

?? wexbitmp.c

?? vxworks下windml的一些demo程序
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* wexbitmp.c - WindML Bitmap example program *//* Copyright 2000 Wind River Systems, Inc. All Rights Reserved *//*modification history--------------------01k,22feb02,msr  Backward compatability for input API.01j,29jan02,rbp  Addition of support for Native Unix.01i,05nov01,gav  Fixed misnamed devIds01h,05nov01,gav  Change to new registry01g,05nov01,gav  Change to new registry01f,09oct01,msr  Ported to new UGL_Q_EVENT architecture.01e,19dec00,gav  Entry point identical to filename w/o extension.01d,07nov00,gav  Added comments about the two transparent blit methods used in                 WindML.01c,27oct00,rfm  Added stdio usage01b,26oct00,rfm  Modified entry point01a,25oct00,rfm  Added modification history*//***************************************************************  WindML Example - Bitmaps** This example program demonstrates how to render bitmaps * to the screen.** To start the example:** -> ld < wexbitmap_ugl.o* -> wexbitmap** To stop the example:** -> wexBitmapStop***************************************************************//* This is included for a printf prototype. */#include <stdio.h>/* Include the UGL header file to use UGL functions, etc.  *//* The DIB header has defines specific to the use of DIBs. */#include <ugl/ugl.h>#include <ugl/uglos.h>#include <ugl/ugldib.h>#include <ugl/uglinput.h>/* This is found in the accompanying C file where the image data is also. */extern UGL_DIB imageDib;/* A forward declaration for this program. */int windMLExampleBitmap (void);/* Global variables *//* Control variable to signal when to stop program */UGL_LOCAL volatile UGL_BOOL stopWex;/* Some graphics environment information */UGL_LOCAL int displayHeight, displayWidth;/* input service */UGL_LOCAL UGL_INPUT_SERVICE_ID inputServiceId;/** In the accompanying C file there is a DIB we will use.  The* colors for that image will be allocated  using this color table* and be available for the DDB/bitmap that will be created later.*/UGL_COLOR imageColorTable[6];/** The color table is where we define the colors we want* to have available.  The format is an array of* ARGB values paired with their allocated uglColor.  As* of this writing, we don't need to worry about Alpha* ("A") values unless we are using video.*/UGL_LOCAL struct _colorStruct    {    UGL_ARGB rgbColor;    UGL_COLOR uglColor;    }colorTable[] =    {    { UGL_MAKE_ARGB(0xff, 0, 0, 0), 0},    /* The color table uses ARGB's */    { UGL_MAKE_ARGB(0xff, 0, 0, 168), 0},  /* (see uglColorAlloc).        */    { UGL_MAKE_ARGB(0xff, 0, 168, 0), 0},  /* Initialize alpha to 255 for */    { UGL_MAKE_ARGB(0xff, 0, 168, 168), 0},/* now (opaque).               */    { UGL_MAKE_RGB(168, 0, 0), 0},         /* UGL_MAKE_RGB takes care of  */    { UGL_MAKE_RGB(168, 0, 168), 0},       /* the alpha for us.           */    { UGL_MAKE_RGB(168, 84, 0), 0},    { UGL_MAKE_RGB(168, 168, 168), 0},    { UGL_MAKE_RGB(84, 84, 84), 0},    { UGL_MAKE_RGB(84, 84, 255), 0},    { UGL_MAKE_RGB(84, 255, 84), 0},    { UGL_MAKE_RGB(84, 255, 255), 0},    { UGL_MAKE_RGB(255, 84, 84), 0},    { UGL_MAKE_RGB(255, 84, 255), 0},    { UGL_MAKE_RGB(255, 255, 84), 0},    { UGL_MAKE_RGB(255, 255, 255), 0}    };#define BLACK			(0)#define BLUE			(1)#define GREEN			(2)#define CYAN			(3)#define RED		    	(4)#define MAGENTA			(5)#define BROWN			(6)#define LIGHTGRAY		(7)#define DARKGRAY		(8)#define LIGHTBLUE		(9)#define LIGHTGREEN		(10)#define LIGHTCYAN		(11)#define LIGHTRED		(12)#define LIGHTMAGENTA	(13)#define YELLOW			(14)#define WHITE			(15)/** This is the data that will be used to create both regular and* transparent DIBs. The DIBs are then used to create "bitmaps"* of their respective types.  It is the bitmap that UGL draws onto* and "blits" (bit block transfers) to other bitmaps and the* screen (i.e. frame buffer).** Solid fills do not need to have a pattern defined, just* pass an UGL_NULL value in the pattern parameter to* revert (it is the default) to solid fills.*/UGL_LOCAL UGL_UINT8 transparentData[] =    {#define O WHITE,#define B BLUE,#define Y LIGHTGRAY,#define G GREEN,    B B B B B B B B B B B O O O O O O O O O B B B B B B B B B B B B    B B B B B B B B B B B O O O O O O O O O B B B B B B B B B B B B    B B B B B B B B B B B B O O O O O O O B B B B B B B B B B B B B    B B B B B B B B B B B B O O O O O O O B B B B B B B B B B B B B    B B B B B B B B B B B B O O O O O O O B B B B B B B B B B B B B    B B B B B B B B B B B B B O O O O O B B B B B B B B B B B B B B    B B B B B B B B B B B B B O O O O O B B B B B B B B B B B B B B    B B B B B B B B B B B B B O O O O O B B B B B B B B B B B B B B    B B B B B B B B B B B B B B O O O B B B B B B B B B B B B B B B    B B B B B B B B B B B B B B O O O B B B B B B B B B B B B B B B    B B B B B B B B B B B B B B O O O B B B B B B B B B B B B B B B    B B B B B B B B B B B B B B B O B B B B B B B B B B B B B B B B    B B B B B B B B B B B B B B B O B B B B B B B B B B B B B B B B    O O O O O O O O O O O O O O O O O O O O O O O B B B B B B B B B    O O O O O O O O O O O O O O O Y B O O O O O O O O O O O O B B B    O O O O O O O O O O O O O O B Y B B B O O O O O O O O O O O O O    O O O O O O O O O O O O O B B Y B B B B B O O O O O O O O O O B    B O O O O O O O O O B B B B B Y Y B B B B B O O O O O O O O O B    B O O O O O O O O B B B B B B Y Y B B B B B B O O O O O O O B B    B O O O O B B B B B B B B B B Y Y B B B B B B B O O O O O O B B    B O O O B B B B B B B B B B B Y Y B B B B B B B B O O O O O B B    B B O B B B B B B B B B B B B Y Y B B B B B B B B B O O O B B B    B B B B B B B B B B B B B B B Y Y B B B B B B B B B B O O B B B    B B B B B B B B B B B B B B Y Y Y Y B B B B B B B B B B O B B B    B B B B B B B B B B B B B B Y Y Y Y B B B B B B B B B B B B B B    B B B B B B B B B B B B B Y Y Y Y Y Y B B B B B B B B B B B B B    B B B B B B B B B B B B B Y Y Y Y Y Y B B B B B B B B B B B B B    B B B B B B B B B B B B B Y Y Y Y Y Y B B B B B B B B B B B B B    B B B B B B B B B B B B B Y Y Y Y Y Y B B B B B B B B B B B B B    B B B B B B B B B B B B B Y Y Y Y Y Y B B B B B B B B B B B B B    G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G    G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G#undef G#undef Y#undef B#undef O    };/** This is the data which defines the "mask" for a transparent* bitmap.  There is no such thing as a transparent DIB in UGL.* Transparent bitmaps (DDBs) are created from a regular DIB* and a monochrome DIB (MDIB).** The mask is essentially a monochrome bitmap where bits that* are set (1) indicate that the color of the transparent bitmap* image should be displayed.  A clear bit (0) indicates that* the color of the underlying bitmap should be displayed.**/UGL_LOCAL UGL_UINT8 transparentMask[] =    {    0x00, 0x0F, 0xF0, 0x00,    0x00, 0x7F, 0xFE, 0x00,    0x01, 0xFF, 0xFF, 0x80,    0x03, 0xFF, 0xFF, 0xC0,    0x07, 0xFF, 0xFF, 0xE0,    0x0F, 0xFF, 0xFF, 0xF0,    0x1F, 0xFF, 0xFF, 0xF8,    0x3F, 0xFF, 0xFF, 0xFC,    0x3F, 0xFF, 0xFF, 0xFC,    0x7F, 0xFF, 0xFF, 0xFE,    0x7F, 0xFF, 0xFF, 0xFE,    0x7F, 0xFF, 0xFF, 0xFE,    0xFF, 0xFF, 0xFF, 0xFF,    0xFF, 0xFF, 0xFF, 0xFF,    0xFF, 0xFF, 0xFF, 0xFF,    0xFF, 0xFF, 0xFF, 0xFF,    0xFF, 0xFF, 0xFF, 0xFF,    0xFF, 0xFF, 0xFF, 0xFF,    0xFF, 0xFF, 0xFF, 0xFF,    0xFF, 0xFF, 0xFF, 0xFF,    0x7F, 0xFF, 0xFF, 0xFE,    0x7F, 0xFF, 0xFF, 0xFE,    0x7F, 0xFF, 0xFF, 0xFE,    0x3F, 0xFF, 0xFF, 0xFC,    0x3F, 0xFF, 0xFF, 0xFC,    0x1F, 0xFF, 0xFF, 0xF8,    0x0F, 0xFF, 0xFF, 0xF0,    0x07, 0xFF, 0xFF, 0xE0,    0x03, 0xFF, 0xFF, 0xC0,    0x01, 0xFF, 0xFF, 0x80,    0x00, 0x7F, 0xFE, 0x00,    0x00, 0x0F, 0xF0, 0x00    };/* Use this to make sure the frame buffer is clear */UGL_LOCAL void ClearScreen(UGL_GC_ID gc)    {    uglBackgroundColorSet(gc, colorTable [BLACK].uglColor);    uglForegroundColorSet(gc, colorTable [BLACK].uglColor);    uglLineStyleSet(gc, UGL_LINE_STYLE_SOLID);    uglLineWidthSet(gc, 1);    uglRectangle(gc, 0, 0, displayWidth - 1, displayHeight - 1);    }/** Wait for the signal to stop.  This is the last function* called before freeing resources and de-initializing UGL.*/UGL_LOCAL void wexPause(void)    {    while (!stopWex)        {        UGL_MSG msg;        if ((uglInputMsgGet (inputServiceId, &msg, 140) == UGL_STATUS_Q_EMPTY) &&            msg.type == MSG_KEYBOARD)            stopWex = UGL_TRUE;        }    }/** Start the example program.  This function and the bitmapStop function* can be invoked from the host shell in order to control the program.*/#if defined(WINDML_NATIVE) && defined(__unix__)int main (int argc, char *argv [])    {    windMLExampleBitmap();    return (0);    }#elif defined(WINDML_NATIVE) && defined(_WIN32)int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,                   LPSTR lpCmdLine, int nShowCmd)    {    uglWin32Parameters(hInstance, hPrevInstance, lpCmdLine, nShowCmd);    windMLExampleBitmap();    return (0);    }#elsevoid wexbitmap (void)    {    stopWex = 0;    printf("To stop wexbitmap, type 'wexbitmapStop'\n");    uglOSTaskCreate("tWindMLbmp", (UGL_FPTR)windMLExampleBitmap, 110, 		    0, 10240, 0,0,0,0,0);    }#endif/* Stop the example program; by signalling the wexPause function. */void wexbitmapStop (void)    {    stopWex = 1;    }/* The main function */int windMLExampleBitmap (void)    {    /* An int for miscellaneous counters,etc. */    int i;        /*     * The UGL Graphics Context (GC) is an important concept in UGL.    * The GC contains data that various UGL functions can use.    * If there were no such thing as a GC, most function calls    * would require several more parameters to communicate that    * information.    */    UGL_GC_ID gc;    /*     * This structure is filled in with data about the frame buffer    * by the uglInfo() function.    */        UGL_MODE_INFO modeInfo;    /*    * The device ID is critical to the operation of UGL.  It

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
蜜臀av一级做a爰片久久| 精品国偷自产国产一区| 亚洲欧美视频在线观看| eeuss鲁片一区二区三区在线观看| 欧美极品美女视频| av在线这里只有精品| 亚洲色图清纯唯美| 精品视频一区二区不卡| 午夜精品一区二区三区三上悠亚| 91麻豆精品国产91久久久资源速度 | 精品一区二区三区免费播放| 精品1区2区在线观看| 成人高清免费在线播放| 一区二区日韩av| 日韩亚洲欧美中文三级| 国产成人在线免费| 亚洲色图欧洲色图| 欧美一区二区三区爱爱| 福利电影一区二区| 一区二区三区视频在线看| 555www色欧美视频| 国产盗摄视频一区二区三区| 一区二区在线观看免费视频播放| 制服丝袜亚洲网站| 国产成+人+日韩+欧美+亚洲| 亚洲成人激情av| 久久久亚洲欧洲日产国码αv| 波多野结衣在线一区| 亚洲成人在线网站| 亚洲不卡av一区二区三区| 国产欧美日韩在线| 99视频一区二区| 一区二区三区毛片| 精品久久一区二区| 91在线观看免费视频| 五月天一区二区三区| 国产欧美综合在线观看第十页| 色综合久久久久久久久久久| 美日韩一级片在线观看| 亚洲欧美电影一区二区| 欧美tk—视频vk| 日本高清成人免费播放| 国产一区在线观看麻豆| 亚洲一区二区不卡免费| 久久精品人人做| 欧美日韩高清一区| 99久久精品国产精品久久| 蜜桃久久av一区| 久久免费看少妇高潮| 91黄视频在线| 国产福利精品一区| 偷偷要91色婷婷| 亚洲色图欧洲色图| 久久婷婷色综合| 欧美一激情一区二区三区| 一本大道综合伊人精品热热| 国产一区二区免费视频| 日韩电影在线观看网站| 一区二区日韩电影| 亚洲视频一二三| 久久九九久久九九| 日韩视频一区在线观看| 欧美性生活大片视频| 91日韩精品一区| 国产999精品久久久久久| 另类小说图片综合网| 日韩av在线播放中文字幕| 又紧又大又爽精品一区二区| 中文字幕亚洲电影| 国产精品婷婷午夜在线观看| 久久久www免费人成精品| 日韩免费电影网站| 欧美大片日本大片免费观看| 欧美一区二区三区四区高清| 欧美久久久久免费| 欧美精品精品一区| 欧美精品黑人性xxxx| 8v天堂国产在线一区二区| 在线精品视频免费播放| 欧美最新大片在线看| 欧美自拍偷拍一区| 欧美自拍偷拍午夜视频| 欧美日韩国产经典色站一区二区三区| 91国偷自产一区二区三区成为亚洲经典 | 成人av网址在线观看| 国产99一区视频免费| 成人精品gif动图一区| 成人免费看视频| av网站免费线看精品| 色视频一区二区| 欧美色偷偷大香| 欧美妇女性影城| 欧美一区二区久久久| 精品国产精品一区二区夜夜嗨| 久久色在线观看| 中文字幕二三区不卡| 亚洲欧美激情小说另类| 午夜精品视频一区| 奇米影视一区二区三区| 狠狠v欧美v日韩v亚洲ⅴ| 国产成人免费在线观看| av亚洲精华国产精华| 欧美三级韩国三级日本三斤| 日韩视频免费观看高清完整版| 欧美精品一区二区久久久| 国产精品视频线看| 亚洲一级二级三级| 乱中年女人伦av一区二区| 国产经典欧美精品| 91成人国产精品| 日韩欧美国产高清| 国产精品国产三级国产aⅴ原创 | av不卡在线观看| 日本乱码高清不卡字幕| 欧美蜜桃一区二区三区| 欧美精品一区在线观看| 国产精品久久久久婷婷二区次 | 偷拍自拍另类欧美| 国产一区欧美二区| 97超碰欧美中文字幕| 91精品国产麻豆| 国产精品色哟哟| 日韩影院精彩在线| 国产不卡视频在线观看| 欧美视频一区二区三区四区| 久久久久久一二三区| 亚洲v中文字幕| 国产一区二区三区香蕉| 欧美日韩免费在线视频| 欧美极品美女视频| 日本不卡免费在线视频| 99久久婷婷国产综合精品电影| 欧美一级理论片| 亚洲天天做日日做天天谢日日欢 | 亚洲另类春色国产| 国产在线精品免费| 欧美日韩在线三区| 亚洲欧美影音先锋| 国产一区二区三区在线观看免费| 欧美日韩亚洲国产综合| 国产精品福利一区二区三区| 精品亚洲aⅴ乱码一区二区三区| 色婷婷国产精品综合在线观看| 久久一区二区视频| 日本欧洲一区二区| 91久久精品一区二区二区| 中文一区在线播放| 极品少妇xxxx精品少妇| 欧美日韩高清影院| 亚洲午夜在线视频| 99精品国产热久久91蜜凸| 国产日韩三级在线| 国产专区综合网| 日韩欧美的一区二区| 日韩**一区毛片| 欧美久久久久久蜜桃| 亚洲国产精品一区二区www在线| 色综合天天综合色综合av| 中文一区在线播放| 国产91精品精华液一区二区三区 | 亚洲欧美激情插| 99久久精品一区| 中文字幕精品—区二区四季| 国产.精品.日韩.另类.中文.在线.播放| 欧美成人在线直播| 免费看日韩精品| 欧美电视剧免费全集观看| 青青草91视频| 日韩亚洲欧美在线观看| 青青草成人在线观看| 欧美一级二级三级乱码| 毛片不卡一区二区| 欧美不卡激情三级在线观看| 美女免费视频一区| 日韩欧美激情四射| 免费黄网站欧美| 欧美va亚洲va在线观看蝴蝶网| 激情五月激情综合网| 国产亚洲欧美日韩俺去了| 国产成人一级电影| 中文字幕 久热精品 视频在线| caoporen国产精品视频| 亚洲综合色成人| 欧美久久一二三四区| 激情五月播播久久久精品| 日本一区二区三区四区| 95精品视频在线| 亚洲成a人片在线观看中文| 欧美一区二区啪啪| 国产寡妇亲子伦一区二区| 国产精品久久久久7777按摩| 一本在线高清不卡dvd| 午夜久久久久久| 91福利在线免费观看| 亚洲成av人片| 久久影院电视剧免费观看| 91首页免费视频| 麻豆国产欧美日韩综合精品二区 | 欧美视频在线播放| 美国欧美日韩国产在线播放|