소스 검색

new opengl binding dev

leonsal 8 년 전
부모
커밋
d0f79745d6
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  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