Description: The purpose of this test is very simple, just a window, through the F1 key to switch between full-screen and the the ordinary screen display, and exit the program when press ESE key. Window color background and perspective (In fact, the test did not spend) opengl write a framework for later learning, in fact, is to rewrite the three functions: the initializeGL () paintGL ( ) resizeGL () these three functions are QGLWidget internal virtual function. The trial is in accordance with the the NeHe write in the network the most famous the opengl English tutorial at: http://nehe.gamedev.net/ and Chinese tutorial: http://www.owlei.com/DancingWind/ the first lecture to learning. Of course, also made reference to the online the Nehe tutorial adapted version of Qt: http://wenku.baidu.com/view/835b29fd941ea76e58fa04a2.html
To Search:
File list (Check if you may need any files):
opengl_nehe_01
..............\glwidget.cpp
..............\glwidget.cpp.autosave
..............\glwidget.h
..............\glwidget.ui
..............\main.cpp
..............\opengl_nehe_01.pro
..............\opengl_nehe_01.pro.user
OpenGL_Qt学习笔记之_01(创建一个OpenGL窗口).pdf