Skip to content

mtroym/GoLearningOpenGL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Learning OpenGL by Go Language.

For some reason, Java version (JOGL) is not maintained for now.

You should install Go Language. We suppose to use opengl binding go-gl to do this. This is my environment config.

$ go version
go version go1.13.14 darwin/amd64

Set up your go, modified GOROOT, GOPATH in your ide. I choose Jetbrains' intelliJ IDEA. What you only need to do is to add Go Language support via Marketplace in plugin and to config your SDK, GOPATH and GOROOT.

Install your go-gl

Use official Go package manager to fetch the go-gl package. Of course you will need glfw as well. Maybe you need proxy in China.

$ go get -u github.com/go-gl/glfw/v3.2/glfw
$ go get -u github.com/go-gl/gl/v{3.2,3.3,4.1,4.2,4.3,4.4,4.5,4.6}-{core,compatibility}/gl
$ go get -u github.com/go-gl/gl/v3.1/gles2 
$ go get -u github.com/go-gl/gl/v2.1/gl
$ go get -u github.com/go-gl/mathgl

Use your go-gl

See tutorials for details.

Content

  • 0_triangle: Draw a triangle by VAO.
  • 1_elementBuffers: Draw a square by EBO
  • 2_cube: UV textures to make cube. UVO usage.

References

About

GoLearningOpenGL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages