资源简介
展示怎么初始化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_ugl.o
* -> 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}
- 上一篇:labview历史数据查询
- 下一篇:eda交通信号灯设计
相关资源
- bp神经网络源代码,可直接运行
- 随机森林R语言代码
- 计算机图形学 边填充算法实现代码
- 直流无刷电机方波驱动 stm32 例程代码
- 仿知乎界面小程序源代码
- 贪吃蛇源代码.fla
- 周立功开发板ProASIC3实验-syn_FIFO代码
- IMX385驱动代码.zip
- dotnet 写字板 实验 源代码 不好请要不
- 图像二维小波变换的实现源代码
- 八三编码器设计 VHDL代码 简单,包附
- linux应用层的华容道游戏源代码
- 交通咨询模拟系统完整代码
- http请求状态代码
- 数值分析所有实验代码
- 网上拍卖系统完整源代码
- 音乐代码转换软件 单片机编程时用
- CSMA/CD等动画演示加源代码
- silicon lab公司的收音IC SI47XX全套开发工
- 用51单片机实现G代码翻译
- 合同管理系统的源代码(附数据库)
- 用VC 编写的仿QQ聊天室程序源代码
- web班级网站设计代码
- 38k单片机红外发送代码、keil
- STM32F103 串口程序(完整版)
- 网络唤醒代码
- VPC3_DPV1源代码,Profibus
- PB做的托盘程序(最小化后在左下角显
- RSA算法源码
- ubuntu9.10 可加载内核模块和字符设备驱
评论
共有 条评论