1 Star 0 Fork 0

chen227 / opengl_OpenGLFunctions

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
main.cpp 418 Bytes
一键复制 编辑 原始数据 按行查看 历史
chen227 提交于 2018-05-15 10:46 . 修改标题
#include <QtGui/QGuiApplication>
#include "openglwindow.h"
int main(int argc, char **argv)
{
QGuiApplication app(argc, argv);
QSurfaceFormat format;
//设置采样率
format.setSamples(16);
Openglwindow window;
window.setTitle(QStringLiteral("第一课:创建一个OpenGL窗口"));
window.setFormat(format);
window.resize(640, 480);
window.show();
return app.exec();
}
1
https://gitee.com/chen227/opengl_OpenGLFunctions.git
git@gitee.com:chen227/opengl_OpenGLFunctions.git
chen227
opengl_OpenGLFunctions
opengl_OpenGLFunctions
master

搜索帮助