This project uses Go-Gl to create a scene with OpenGL and play with it.
This package uses go modules. Whenever you run go build
or go test
all dependencies will be downloaded automatically. See go.mod and go.sum to see all modules used by this package.
- OpenGL for Go:
github.com/go-gl/gl/v2.1/gl
- GLFW:
github.com/go-gl/glfw/v3.3/glfw
To execute this example program you can use the make run
command, it will build the golang executable and run the example program. After the program execution the command will remove the golang executable it has created.
make run
: build and run the programmake
: will build all the files needed
When running this example program, the program will create an white window and present 2 squares (cars) with spinning sirens (X). One car is blue and the other is red.
You can press q
or ESC
to quit the program.