Sfoglia il codice sorgente

new opengl binding dev

leonsal 8 anni fa
parent
commit
d0f79745d6
2 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 1 1
      gls/build.go
  2. 2 2
      gls/gls.go

+ 1 - 1
gls/build.go

@@ -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

+ 2 - 2
gls/gls.go

@@ -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