文件名称:opengl_qt_test
介绍说明--下载内容均来自于网络,请自行研究使用
本次试验的目的很简单,只是显示一个窗口,可以通过F1键值来切换全屏显示和普通屏显示,并当按下ESE键时退出程序。窗口的颜色背景和透视效果(其实该试验都没用上)等用opengl来实现,主要是为后面的学习写了个框架,其实这里主要是重写了3个函数:initializeGL() paintGL() resizeGL() 这3个函数都是QGLWidget内部的虚函数。
本次试验是按照网络上NeHe写的最著名的opengl英文教程:http://nehe.gamedev.net/ 和对应的中文教程:http://www.owlei.com/DancingWind/ 的第一讲来学习的。当然也参考了网上对Nehe教程改编的Qt版:http://wenku.baidu.com/view/835b29fd941ea76e58fa04a2.html -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 fr a mework 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
本次试验是按照网络上NeHe写的最著名的opengl英文教程:http://nehe.gamedev.net/ 和对应的中文教程:http://www.owlei.com/DancingWind/ 的第一讲来学习的。当然也参考了网上对Nehe教程改编的Qt版:http://wenku.baidu.com/view/835b29fd941ea76e58fa04a2.html -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 fr a mework 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
(系统自动生成,下载前可以参看下载内容)
下载文件列表
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
..............\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