Explorar el Código

added gl.DrawBuffer()

leonsal hace 8 años
padre
commit
57cc7519ec
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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)))