摘要
针对图形应用编程接口库的图形处理器应用问题,设计一个图形应用编程接口函数库。该函数库基于开放的图形库标准OpenGL,采用3层结构设计实现。应用编程接口管理层管理和封装整个函数库,函数预处理层完成上下文的建立和函数参数的校验,命令解析层将函数参数转换成图形处理器能够识别的指令序列,参数转换完成后调用驱动程序将指令序列传递给底层硬件。以VxWorks为软件平台,对该函数库进行测试验证,结果表明该函数库可以满足图形处理器系统的要求。
To accommodate the application of graphics processing unit,a graphics application programming interface library is designed.The library follows the open graphics library standards OpenGL and is implemented with three-layer architecture.The management layer provides an interface to whole function library.The function pre-process layer is used to set up contexts and verify parameters.The command resolution layer is used to translate parameters to instruction sequences which can be recognized by graphics processing unit.After the completion of the parameter conversion,the instruction sequences can then be delivered to underlying hardware by drivers.This graphics application programming interface library is tested and verified in graphics processing unit prototype system based on VxWorks platform.The results show that the designed graphics library can meet the common requirements of graphics processing system.
出处
《西安邮电大学学报》
2016年第2期98-100,126,共4页
Journal of Xi’an University of Posts and Telecommunications
基金
国家自然科学基金资助项目(61272120)
陕西省自然科学基金资助项目(2015JM6326)
西安邮电大学研究生创新基金资助项目(CXL2014-20)