91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 30KB
    文件類型: .c
    金幣: 1
    下載: 0 次
    發布日期: 2021-05-20
  • 語言: 其他
  • 標簽: vxworks??windML??代碼??

資源簡介

展示怎么初始化windML和繪制基本的圖元,文本的顯示等等。

資源截圖

代碼片段和文件信息

/*?ugldemo.c?-?Graphics?primitives?demonstration?program?*/

/*?Copyright?1999-2000?Wind?River?Systems?Inc.?All?Rights?Reserved?*/
/*?Copyright?1998?Zinc?Software?Incorporated.?*/

/*
modification?history
--------------------
01n01aug02rfm??Removed?static?declartion?of?windMLDemo
01m26apr02gav??Change?banner?to?display?actual?version.
01l25feb02wdf??Fixed?compiler?warnings.
01k22feb02msr??Backward?compatability?for?input?API.
01j29jan02rbp??Addition?of?support?for?Native?Unix.
01i28aug01rbp??Fix?for?__unix__?macro.
01h23jul01c_s??Change?NATIVE?to?WINDML_NATIVE?(less?chance?of?collision)
01g16jun01c_s??Allow?argv?[1]?to?set?mode.
01f15jun01c_s??Add?native?support
01i05nov01gav??Fixed?misnamed?devIds
01h05nov01gav??Change?to?new?registry
01g05nov01gav??Change?to?new?registry
01f09oct01msr??Ported?to?new?UGL_Q_EVENT?architecture.
01e30nov00gav??Fixed?message?length?to?fit?on?small?screens.
01d21nov00gav??Clearscreen?corrected?(SPR?36009).
01c16nov00msr??Fixed?SPR?#62051
01b27oct00rfm??Added?func?ptr?cast?to?taskSpawn
01a25oct00rfm??Added?taskSpawn
*/

/**************************************************************
*??WindML?Example?-?Demo?of?primitives
*
*?This?example?program?demonstrates?basic?drawing?primitives.
*
*?To?start?the?example:
*
*?->?ld?*?->?ugldemo?
*
*?If?the??parameter?is?positive?no?input?devices?are?
*?assumed?to?be?present?and?the?demo?will?wait??number
*?of?seconds?before?moving?to?the?next?test.?A?value?of?zero
*?assumes?that?a?mouse?or?keyboard?is?present?and?the?user?
*?must?press?a?key?or?mouse?button?to?continue?to?the?next
*?test.?A?negative?value?assumes?no?input?devices?are?present
*?and?no?delay?between?tests.
*
*?To?shut?down?the?double?buffering?test?program?either?press
*?‘q‘?on?the?keyboard?or?wait?for?the?test?to?complete.
*
**************************************************************/

#if?!defined(WINDML_NATIVE)
#include?
#elif?defined(__unix__)
#include?
#endif

#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?

extern?const?unsigned?int?uglVersionMinor;
extern?const?unsigned?int?uglVersionMajor;

UGL_DEVICE_ID?devId;
UGL_GC_ID?gc;
static?UGL_INPUT_SERVICE_ID?inputServiceId;
static?UGL_REGION_ID?regionId;
static?UGL_FONT_ID?fontDialog;
static?UGL_FONT_ID?fontSystem;
static?UGL_FONT_ID?fontFixed;
static?UGL_FONT_DRIVER_ID?fontDrvId;
static?UGL_DDB_ID?stdDdb;
static?UGL_MDDB_ID?patternDdb;
static?UGL_CDDB_ID?cursorDdb;
static?UGL_TDDB_ID?transDdb;
static?int?*randomData;
static?UGL_COLOR?*?colorData;
static?int?displayHeight?displayWidth;

void?windMLDemo?(int?mode);

struct?_colorStruct
????{
????UGL_RGB?rgbColor;
????UGL_COLOR?uglColor;
????}
colorTable[]?=
????{
????{?UGL_MAKE_RGB(0?0?0)?0}

評論

共有 條評論