Update samples/other/qtopenglwidget.ring
load "guilib.ring"
+new qApp {
oOpenGLApp = new OpenGLApp { start() }
+ exec()
+}
class OpenGLApp
win oOpenGL
func start
- new qApp {
- this.win = new qWidget() {
+ win = new qWidget() {
setWindowTitle("Testing OpenGLWidget...")
resize(600,600)
move(100,100)
@@ -20,8 +22,6 @@ class OpenGLApp
}
show()
}
- exec()
- }
func glinit
context = new QOpenGLContext(win)
