first commit
This commit is contained in:
19
qopengltest/main.cpp
Normal file
19
qopengltest/main.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtGui/qsurfaceformat.h>
|
||||
#include <iostream>
|
||||
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
QApplication app(argc, argv);
|
||||
QSurfaceFormat fmt;
|
||||
fmt.setVersion(3, 3);
|
||||
fmt.setProfile(QSurfaceFormat::CoreProfile);
|
||||
fmt.setDepthBufferSize(24);
|
||||
fmt.setStencilBufferSize(8);
|
||||
fmt.setSamples(4);
|
||||
fmt.setSwapInterval(1);
|
||||
QSurfaceFormat::setDefaultFormat(fmt);
|
||||
std::cout << "Hello, from qopengltest!\n";
|
||||
|
||||
return app.exec();
|
||||
}
|
||||
Reference in New Issue
Block a user