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

package buffered

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


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) *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, dstRegion, srcRegion driver.Region, subimageOffsets [graphics.ShaderImageNum - 1][2]float32, 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) 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

func (*Image) SetVolatile Uses

func (i *Image) SetVolatile(volatile bool)

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 9 packages (graph) and is imported by 3 packages. Updated 2021-01-20. Refresh now. Tools for package owners.