Documentation ¶
Index ¶
- type Easel
- func (e *Easel) CompileProgram(vertex, fragment string) (*Program, error)
- func (e *Easel) CreateTexture2D(img image.Image) (*Texture2D, error)
- func (e *Easel) Destroy()
- func (e *Easel) DetachCurrent()
- func (e *Easel) LoadTexture2D(data []byte) (*Texture2D, image.Image, error)
- func (e *Easel) MakeCurrent()
- func (e *Easel) NewPalette() (*Palette, error)
- func (e *Easel) SwapBuffers()
- type Palette
- func (p *Palette) AttachArrayIndexBuffer(data []uint16) (*VertexBuffer, error)
- func (p *Palette) AttachProgram(prog *Program)
- func (p *Palette) Bind() error
- func (p *Palette) BindArrayAttrib(vertexbuffer *VertexBuffer, indecies *VertexBuffer, name string, ...) error
- func (p *Palette) BindTexture(name string, tex *Texture2D) (*Texture2D, error)
- func (p *Palette) BindUniformf(name string, vecDim int, data []float32) error
- func (p *Palette) BindUniformi(name string, vecDim int, data []int32) error
- func (p *Palette) Destroy()
- func (p *Palette) MakeArrayBuffer(data []float32) (*VertexBuffer, error)
- func (p *Palette) Program() *Program
- func (p *Palette) Render(size image.Rectangle) (image.Image, error)
- func (p *Palette) Unbind()
- type Program
- type Texture2D
- type VertexArray
- type VertexBuffer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Easel ¶
type Easel struct {
// contains filtered or unexported fields
}
Easel ...
func (*Easel) CompileProgram ¶
CompileProgram ...
func (*Easel) CreateTexture2D ¶
CreateTexture2D ...
func (*Easel) LoadTexture2D ¶
LoadTexture2D ...
type Palette ¶
type Palette struct {
// contains filtered or unexported fields
}
Palette ...
func (*Palette) AttachArrayIndexBuffer ¶
func (p *Palette) AttachArrayIndexBuffer(data []uint16) (*VertexBuffer, error)
AttachArrayIndexBuffer ...
func (*Palette) BindArrayAttrib ¶
func (p *Palette) BindArrayAttrib(vertexbuffer *VertexBuffer, indecies *VertexBuffer, name string, size, stride, offset int32) error
BindArrayAttrib ...
func (*Palette) BindTexture ¶
BindTexture ...
func (*Palette) BindUniformf ¶
BindUniformf ...
func (*Palette) BindUniformi ¶
BindUniformi ...
func (*Palette) MakeArrayBuffer ¶
func (p *Palette) MakeArrayBuffer(data []float32) (*VertexBuffer, error)
MakeArrayBuffer ...
type VertexArray ¶
type VertexArray struct {
// contains filtered or unexported fields
}
VertexArray ...
type VertexBuffer ¶
type VertexBuffer struct {
// contains filtered or unexported fields
}
VertexBuffer ...
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package proto is a generated protocol buffer package.
|
Package proto is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.