18 lines
358 B
C++
18 lines
358 B
C++
#include "widget.h"
|
|
#include "shu.h"
|
|
#include <QApplication>
|
|
#include <QApplication>
|
|
#include <QSurfaceFormat>
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QSurfaceFormat format;
|
|
format.setRenderableType(QSurfaceFormat::OpenGL);
|
|
QSurfaceFormat::setDefaultFormat(format);
|
|
QApplication a(argc, argv);
|
|
Widget w;
|
|
w.show();
|
|
|
|
|
|
return a.exec();
|
|
}
|