buffer

package
v0.0.0-...-6a0c17c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2018 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const InvalidID = 0

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

type Buffer struct {
	ID uint32
}

func DefaultBuffer

func DefaultBuffer() Buffer

func (*Buffer) Allocate

func (b *Buffer) Allocate() error

func (*Buffer) Release

func (b *Buffer) Release()

type DataPlayground

type DataPlayground interface {
	Size() int
	Data() []byte
}

type Float32DataPlayground

type Float32DataPlayground interface {
	DataPlayground
	PutFloat32(index int, value float32)
	Count() int
}

func DedicatedFloat32DataPlayground

func DedicatedFloat32DataPlayground(count int) Float32DataPlayground

type Float32DataWriter

type Float32DataWriter interface {
	PutValue(value float32)
	PutValue2(a, b float32)
	PutValue3(a, b, c float32)
	PutValue4(a, b, c, d float32)
}

func NewFloat32DataWriter

func NewFloat32DataWriter(playground Float32DataPlayground, offset, stride int) Float32DataWriter

type IndexBuffer

type IndexBuffer struct {
	Buffer
}

func NewIndexBuffer

func NewIndexBuffer() *IndexBuffer

func (*IndexBuffer) Bind

func (b *IndexBuffer) Bind()

func (*IndexBuffer) CreateData

func (b *IndexBuffer) CreateData(playground DataPlayground)

type UInt16DataPlayground

type UInt16DataPlayground interface {
	DataPlayground
	PutUInt16(index int, value uint16)
	Count() int
}

func DedicatedUInt16DataPlayground

func DedicatedUInt16DataPlayground(count int) UInt16DataPlayground

type UInt16DataWriter

type UInt16DataWriter interface {
	PutValue(value uint16)
}

func NewUInt16DataWriter

func NewUInt16DataWriter(playground UInt16DataPlayground, stride int) UInt16DataWriter

type VertexBuffer

type VertexBuffer struct {
	Buffer
}

func NewVertexBuffer

func NewVertexBuffer() *VertexBuffer

func (*VertexBuffer) Bind

func (b *VertexBuffer) Bind()

func (*VertexBuffer) CreateData

func (b *VertexBuffer) CreateData(playground DataPlayground)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL