Region editor
Some checks failed
Build Dusk / build-linux (push) Failing after 51s
Build Dusk / build-psp (push) Failing after 55s

This commit is contained in:
2025-11-28 08:48:42 -06:00
parent 538079880d
commit b01c0d37b0
9 changed files with 188 additions and 5 deletions

View File

@@ -14,6 +14,11 @@ class GLWidget(QOpenGLWidget):
def initializeGL(self):
glClearColor(0.392, 0.584, 0.929, 1.0)
glEnable(GL_DEPTH_TEST)
glEnable(GL_BLEND)
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)
glEnable(GL_POLYGON_OFFSET_FILL)
glPolygonOffset(1.0, 1.0)
glDisable(GL_POLYGON_OFFSET_FILL)
def resizeGL(self, w, h):
pass
@@ -31,6 +36,6 @@ class GLWidget(QOpenGLWidget):
glViewport(0, 0, w, h)
self.parent.camera.setup(w, h)
self.parent.map.draw()
self.parent.grid.draw()
self.parent.map.draw()
self.parent.selectBox.draw()