基于OpenGL和GLUT的图形控件实验项目设计与实现  被引量:1

Designing Graphic Controls Experiment Project Based on Open GL and GLUT

在线阅读下载全文

作  者:丁智[1] 肖宇[1] DING Zhi;XIAO Yu(Computer and Information Engineering College,Bengbu University,Bengbu 233030,China)

机构地区:[1]蚌埠学院计算机与信息工程学院,安徽蚌埠233030

出  处:《通化师范学院学报》2021年第8期101-107,共7页Journal of Tonghua Normal University

基  金:国家线上线下混合式一流课程“多媒体创作基础及应用”;安徽省智慧课堂研究项目“多媒体技术及应用”(2018ZHKT069);蚌埠学院新工科教学研究项目“基于华为ICT学院的新工科人才培养模式的研究”(2020XGKJY9)。

摘  要:图形控件是图形用户界面的重要元素,该文讨论了基于OpenGL和GLUT图形库构造及实现轻量级跨平台图形用户界面图形控件实验的实现过程.首先,以滑动条、单复选按钮等例讨论如何绘制图形用户界面控件的外观图形;其次,阐述如何将相关控件与GLUT的窗口事件回调函数相关联,并用C++类对相关控件的功能函数进行封装;最后,以实例验证设计方法的可行性和有效性.实验表明:该图形控件C++类使用方法简单,可复用性强,对窗口事件反应灵敏.设计方法可用于各类基于OpenGL和GLUT的跨平面应用程序的图形用户界面设计.Visual controllers are key and essential components of graphics user interface(GUI).In this paper,we presented a simple method about how to construct visual controls for platform-cross GUI based on OpenGL and GLUT.Taking sliders and radio-buttons as examples,we firstly discuss how to render visual interface of the controllers.Then,all the functions of the controls are encapsulated in corresponding C++classes,and we show how to connect the controls to the window events by implanting the class functions of the controls to window callbacks.Experiments show that our method in is feasible and efficient.The designed classes have some good properties,such as useable and reusable.Experiments also show the controls can be used in various OpenGL and GLUT based graphic applications.

关 键 词:图形用户界面 图形控件 界面设计 跨平台图形应用 

分 类 号:TP391.9[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象