opengl: Unexport BindBuffer

This commit is contained in:
Hajime Hoshi 2018-10-30 23:57:40 +09:00
parent 23a832c0a7
commit 5be08cac19
4 changed files with 5 additions and 5 deletions

View File

@ -471,7 +471,7 @@ func (c *Context) newElementArrayBuffer(size int) buffer {
return bf
}
func (c *Context) BindBuffer(bufferType bufferType, b buffer) {
func (c *Context) bindBuffer(bufferType bufferType, b buffer) {
_ = c.runOnContextThread(func() error {
gl.BindBuffer(uint32(bufferType), uint32(b))
return nil

View File

@ -420,7 +420,7 @@ func (c *Context) newElementArrayBuffer(size int) buffer {
return buffer(b)
}
func (c *Context) BindBuffer(bufferType bufferType, b buffer) {
func (c *Context) bindBuffer(bufferType bufferType, b buffer) {
gl := c.gl
gl.Call("bindBuffer", int(bufferType), js.Value(b))
}

View File

@ -369,7 +369,7 @@ func (c *Context) newElementArrayBuffer(size int) buffer {
return buffer(b)
}
func (c *Context) BindBuffer(bufferType bufferType, b buffer) {
func (c *Context) bindBuffer(bufferType bufferType, b buffer) {
gl := c.gl
gl.BindBuffer(mgl.Enum(bufferType), mgl.Buffer(b))
}

View File

@ -288,8 +288,8 @@ func (s *openGLState) useProgram(proj []float32, texture Texture, dstW, dstH, sr
theArrayBufferLayout.enable(program)
if s.lastProgram == zeroProgram {
c.BindBuffer(arrayBuffer, s.arrayBuffer)
c.BindBuffer(elementArrayBuffer, s.elementArrayBuffer)
c.bindBuffer(arrayBuffer, s.arrayBuffer)
c.bindBuffer(elementArrayBuffer, s.elementArrayBuffer)
c.uniformInt(program, "texture", 0)
}