资源简介
展示怎么初始化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交通信号灯设计
相关资源
- WindML入门教程—在vxsim中调试WindML
- qt aes加密 源代码
- j2me挖金矿游戏源代码
- 考试座位随机安排代码
- 禁忌搜索tabu search算法代码
- 有说明有代码:投票器的原理和设计
- robocup 2d 科大2队的可执行代码
- olsr仿真代码ns2
- flash源代码——月亮绕地球
- 内存扫描原理
- CVSD语音编码源代码
- 代码FastRcnn
- 8086交通灯设计原理图和代码
- LDA+C+代码(Zhou Li)
- 学校教材订购系统及源代码
- FLAC3D模拟大巷穿断层代码
- relief算法的代码实现
- 微分方程的数值解法与程序实现 华冬
- linux-FTP客户端(纯C代码)
- AD7768_sai源代码
- rabbitMQ代码案例
- 无源定位学习代码
- A*算法解决传教士与野人过河问题可运
- 2017年最新机器学习与深度学习从基础
- ZIGBEE遥控器完整代码
- 虹膜的定位和特征提取代码
- 智能优化算法--粒子群算法应用代码
- 整理版 quartusVHDL modelsim 仿真代码
- Qt写的网络版五子棋游戏源代码
- Qt写的单机版的五子棋游戏源代码
评论
共有 条评论