ebiten: github.com/hajimehoshi/ebiten/internal/buffered Index | Files

package buffered

import "github.com/hajimehoshi/ebiten/internal/buffered"

Index

Package Files

command.go image.go

func BeginFrame Uses

func BeginFrame() error

func EndFrame Uses

func EndFrame() error

type Image Uses

type Image struct {
    // contains filtered or unexported fields
}

func NewImage Uses

func NewImage(width, height int, volatile bool) *Image

func NewScreenFramebufferImage Uses

func NewScreenFramebufferImage(width, height int) *Image

func (*Image) DrawTriangles Uses

func (i *Image) DrawTriangles(srcs [graphics.ShaderImageNum]*Image, vertices []float32, indices []uint16, colorm *affine.ColorM, mode driver.CompositeMode, filter driver.Filter, address driver.Address, sourceRegion driver.Region, shader *Shader, uniforms []interface{})

DrawTriangles draws the src image with the given vertices.

Copying vertices and indices is the caller's responsibility.

func (*Image) Dump Uses

func (i *Image) Dump(name string, blackbg bool) error

func (*Image) Fill Uses

func (i *Image) Fill(clr color.RGBA)

func (*Image) MarkDisposed Uses

func (i *Image) MarkDisposed()

func (*Image) Pixels Uses

func (img *Image) Pixels(x, y, width, height int) (pix []byte, err error)

func (*Image) ReplacePixels Uses

func (i *Image) ReplacePixels(pix []byte, x, y, width, height int) error

type Shader Uses

type Shader struct {
    // contains filtered or unexported fields
}

func NewShader Uses

func NewShader(program *shaderir.Program) *Shader

func (*Shader) MarkDisposed Uses

func (s *Shader) MarkDisposed()

Package buffered imports 10 packages (graph) and is imported by 3 packages. Updated 2020-08-05. Refresh now. Tools for package owners.