added support for pillars
minor fixes new 3D models
This commit is contained in:
@@ -113,12 +113,13 @@ MapView3D::MapView3D(QWidget *parent) : QOpenGLWidget(parent) {
|
||||
|
||||
auto format = QSurfaceFormat();
|
||||
format.setRenderableType(QSurfaceFormat::OpenGL);
|
||||
format.setVersion(3, 4);
|
||||
//format.setVersion(3, 4);
|
||||
//format.setSamples(2);
|
||||
//format.setProfile(QSurfaceFormat::CompatibilityProfile);
|
||||
//format.setOption(QSurfaceFormat::DebugContext);
|
||||
format.setSamples(2);
|
||||
format.setProfile(QSurfaceFormat::CompatibilityProfile);
|
||||
format.setOption(QSurfaceFormat::DebugContext);
|
||||
|
||||
setFormat(format);
|
||||
setFormat(format);
|
||||
|
||||
auto ver = format.version();
|
||||
std::cout << "OpenGL Context Version: " << ver.first << "." << ver.second << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user