@@ -4,7 +4,7 @@
package gls
// Generation of API files: glapi.c, glapi.h, consts.go
-//go:generate glapi2go glcorearb.h
+//go:generate glapi2go -glversion GL_VERSION_3_3 glcorearb.h
// // Platform build flags
// #cgo freebsd CFLAGS: -DGL_GLEXT_PROTOTYPES
@@ -15,8 +15,8 @@ import (
"unsafe"
)
-// GLS encapsulates the state of an OpenGL context which should be
-// associated with a single Window.
+// GLS encapsulates the state of an OpenGL context and contains
+// methods to call OpenGL functions.
type GLS struct {
stats Stats // statistics
Prog *Program // current active program