Loading scenes/icosahedron/icosahedron.go +14 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,8 @@ import ( "github.com/go-gl/gl/v4.3-core/gl" "github.com/go-gl/glfw/v3.2/glfw" "repositories.muehmer.net/bsmrgo/saola/support/scene" gi "repositories.muehmer.net/bsmrgo/geometry/icosahedron" ) const ( Loading @@ -30,6 +32,18 @@ func Hooks() scene.HooksType { // Initialize the environment. func initialize() { fmt.Fprintf(os.Stderr, "[%s] Initialize()\n", sceneName) icoVertices, icoFaces, err := gi.Icosahedron() if err != nil { panic(err) } for i, icoVertex := range *icoVertices { fmt.Printf("v[%d] = %v\n", i, icoVertex) } for i, icoFace := range *icoFaces { fmt.Printf("f[%d] = %v\n", i, icoFace) } } // Resize changes the view. Loading Loading
scenes/icosahedron/icosahedron.go +14 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,8 @@ import ( "github.com/go-gl/gl/v4.3-core/gl" "github.com/go-gl/glfw/v3.2/glfw" "repositories.muehmer.net/bsmrgo/saola/support/scene" gi "repositories.muehmer.net/bsmrgo/geometry/icosahedron" ) const ( Loading @@ -30,6 +32,18 @@ func Hooks() scene.HooksType { // Initialize the environment. func initialize() { fmt.Fprintf(os.Stderr, "[%s] Initialize()\n", sceneName) icoVertices, icoFaces, err := gi.Icosahedron() if err != nil { panic(err) } for i, icoVertex := range *icoVertices { fmt.Printf("v[%d] = %v\n", i, icoVertex) } for i, icoFace := range *icoFaces { fmt.Printf("f[%d] = %v\n", i, icoFace) } } // Resize changes the view. Loading