ggebiten

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Graphics

type Graphics struct {
	GG *gg.Context
	// contains filtered or unexported fields
}
func NewGraphicsSoftLink(width, height int, filter ebiten.Filter) *Graphics

func (*Graphics) Dispose

func (g *Graphics) Dispose()

func (*Graphics) DrawRect

func (g *Graphics) DrawRect(x, y, w, h, strokewidth int, stroke, bg color.Color)

func (*Graphics) Ebimage

func (g *Graphics) Ebimage() *ebiten.Image

func (*Graphics) Sync

func (g *Graphics) Sync()

type HardLinkedImage

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

func NewHardLinkedImage

func NewHardLinkedImage(width, height int, filter ebiten.Filter) *HardLinkedImage

func (*HardLinkedImage) Dispose

func (img *HardLinkedImage) Dispose()

Dispose is called by GC, use it only if you need to erame memory faster

func (*HardLinkedImage) Ebimage

func (img *HardLinkedImage) Ebimage() *ebiten.Image

func (*HardLinkedImage) Image

func (img *HardLinkedImage) Image() *image.RGBA

func (*HardLinkedImage) UpdatePixels

func (img *HardLinkedImage) UpdatePixels()

type LinkedImage

type LinkedImage interface {
	Dispose()
	UpdatePixels()
	Image() *image.RGBA
	Ebimage() *ebiten.Image
}

type SoftLinkedImage

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

func NewSoftLinkedImage

func NewSoftLinkedImage(width, height int, filter ebiten.Filter) *SoftLinkedImage

func (*SoftLinkedImage) Dispose

func (img *SoftLinkedImage) Dispose()

Dispose is called by GC, use it only if you need to erame memory faster

func (*SoftLinkedImage) Ebimage

func (img *SoftLinkedImage) Ebimage() *ebiten.Image

func (*SoftLinkedImage) Image

func (img *SoftLinkedImage) Image() *image.RGBA

func (*SoftLinkedImage) UpdatePixels

func (img *SoftLinkedImage) UpdatePixels()

Jump to

Keyboard shortcuts

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