func (b *FloatVertexBuffer) ID() uint32 {
	return b.id
}
ID returns OpenGL identifier/name.
package gl
import (
	"github.com/jacekolszak/pixiq/image"
)
func NewContext(api API) *Context {
	if api == nil {
		panic("nil api")
	}
	return &Context{
		api:             api,
		vertexBufferIDs: vertexBufferIDs{},
		allImages:       allImages{},
		capabilities:    gatherCapabilities(api),
	}
}
func gatherCapabilities(api API) *Capabilities {
	var maxTextureSizeVal int32
	api.GetIntegerv(maxTextureSize, &maxTextureSizeVal)
	return &Capabilities{
		maxTextureSize: int(maxTextureSizeVal),
	}
}
type VertexBuffer interface {
	ID() uint32
}
type vertexBufferIDs map[VertexBuffer]uint32
type allImages map[image.AcceleratedImage]*AcceleratedImage
type FloatVertexBuffer struct {
	id      uint32
	deleted bool
	size    int
	api     API
}
func (b *FloatVertexBuffer) Size() int {
	return b.size
}