Esempio n. 1
0
func (b *gl32Buffer) Uploadi16(data []uint16) {
	b.Bind(nil)
	var i uint16
	gl.BufferData(b.target, gl.Sizeiptr(unsafe.Sizeof(i)*uintptr(len(data))), gl.Pointer(&data[0]), b.usage)
}
Esempio n. 2
0
func (b *gl32Buffer) Uploadf32(data []float32) {
	b.Bind(nil)
	var f float32
	gl.BufferData(b.target, gl.Sizeiptr(unsafe.Sizeof(f)*uintptr(len(data))), gl.Pointer(&data[0]), b.usage)
}