We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ade399 commit 2f2521dCopy full SHA for 2f2521d
1 file changed
gsdfaux/ui.go
@@ -19,9 +19,17 @@ func ui(s glbuild.Shader3D, cfg UIConfig) error {
19
bb := s.Bounds()
20
diag := bb.Diagonal()
21
// Initialize GLFW
22
- window, term, err := startGLFW(cfg.Width, cfg.Height)
+ window, term, err := glgl.InitWithCurrentWindow33(glgl.WindowConfig{
23
+ Title: "gsdf 3D Shape Visualizer",
24
+ NotResizable: true,
25
+ Version: [2]int{3, 2},
26
+ OpenGLProfile: glfw.OpenGLCompatProfile,
27
+ ForwardCompat: true,
28
+ Width: cfg.Width,
29
+ Height: cfg.Height,
30
+ })
31
if err != nil {
- log.Fatal(err)
32
+ return err
33
}
34
defer term()
35
var sdfDecl bytes.Buffer
0 commit comments