ソースを参照

Merge branch 'master' into app

leonsal 8 年 前
コミット
86aba6c81b
1 ファイル変更5 行追加0 行削除
  1. 5 0
      gls/gls.go

+ 5 - 0
gls/gls.go

@@ -345,6 +345,11 @@ func (gs *GLS) DrawArrays(mode uint32, first int32, count int32) {
 	gs.stats.Drawcalls++
 }
 
+func (gs *GLS) DrawBuffer(mode uint32) {
+
+	C.glDrawBuffer(C.GLenum(mode))
+}
+
 func (gs *GLS) DrawElements(mode uint32, count int32, itype uint32, start uint32) {
 
 	C.glDrawElements(C.GLenum(mode), C.GLsizei(count), C.GLenum(itype), unsafe.Pointer(uintptr(start)))