Example programs for the various go-gl packages.
Go
Switch branches/tags
Nothing to show
Latest commit ee0644b May 2, 2017 @shurcooL shurcooL committed on GitHub Add import comments. (#61)
The repository has been recently renamed from "examples" to "example"
in #58. Help make the new expected import path more clear by adding
import comments. (Reference: https://golang.org/cmd/go/#hdr-Import_path_checking.)

This way, the expected import path is visible in the source code, in
addition to README. It also gives a better error message when trying
to go get or go install the package with incorrect old import path.

Closes #58 (again).

README.md

go-gl Examples Build Status GoDoc

Basic Usage

These examples demonstrate initialization and basic usage. They have the bare minimum code needed.

  • gl41core-cube - Renders a textured spinning cube using GLFW 3 and OpenGL 4.1 core forward-compatible profile.
  • gl21-cube - Renders a textured spinning cube using GLFW 3 and OpenGL 2.1.