摘要
针对OpenGL不包含窗口管理和事件检测等功能的缺陷,GLUT(OpenGL Utility Toolkit)工具包对窗口和事件的管理工作进行标准化和简化。简要介绍GLUT的主要功能和安装方法,给出一个基于GLUT的程序框架,详细分析基于回调函数的事件管理、变换顺序及堆栈操作、坐标系等技术。为更复杂的图形程序设计提供基础。
Since OpenGL does not include such functions as window management and event detecting,GLUT(OpenGL U-tility Toolkit) standardized and simplified window and event management. This paper briefly introduces GLUT main function and its install procedure. A GLUT- based programming framework is presented. Technical details such as callback-function-based event management,transform sequence and stack operation, coordinate system are discussed. This provides a footstone for programming advanced graphical application.
出处
《现代电子技术》
2008年第4期71-73,共3页
Modern Electronics Technique
基金
广东省自然科学基金(04300773)
关键词
GLUT
程序框架
回调函数
变换顺序
堆栈操作
GLUT
programming framework
callback function
transforming sequence, stack operation