Documentation ¶
Overview ¶
Package builder provides a simple way to create buffers to upload to the gpu
Index ¶
- type Buffer
- func (b *Buffer) Byte(i int8)
- func (b *Buffer) Count() int
- func (b *Buffer) Data() []byte
- func (b *Buffer) ElementSize() int
- func (b *Buffer) Float(f float32)
- func (b *Buffer) Reset()
- func (b *Buffer) Short(i int16)
- func (b *Buffer) UnsignedByte(i byte)
- func (b *Buffer) UnsignedInt(i uint32)
- func (b *Buffer) UnsignedShort(i uint16)
- func (b *Buffer) Write(p []byte)
- func (b *Buffer) WriteBuffer(o *Buffer)
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
Buffer is a dynamically sized byte buffer for creating data to upload to the gpu.
func (*Buffer) ElementSize ¶
ElementSize returns the size of a single vertex in the buffer
func (*Buffer) UnsignedByte ¶
UnsignedByte appends an unsigned byte to the buffer.
func (*Buffer) UnsignedInt ¶
func (*Buffer) UnsignedShort ¶
UnsignedShort writes an unsigned short to the buffer
func (*Buffer) WriteBuffer ¶
WriteBuffer copies the passed buffer to this buffer
Click to show internal directories.
Click to hide internal directories.