patch

package
v0.0.0-...-cfc904a Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrawImageReplacer

func DrawImageReplacer(dst, src *ebiten.Image, opts *ebiten.DrawImageOptions)

func DrawRectShaderReplacer

func DrawRectShaderReplacer(dst *ebiten.Image, width, height int, shader *ebiten.Shader, opts *ebiten.DrawRectShaderOptions)

func DrawTrianglesReplacer

func DrawTrianglesReplacer(dst *ebiten.Image, vertices []ebiten.Vertex, indices []uint16, src *ebiten.Image, opts *ebiten.DrawTrianglesOptions)

func DrawTrianglesShaderReplacer

func DrawTrianglesShaderReplacer(dst *ebiten.Image, vertices []ebiten.Vertex, indices []uint16, shader *ebiten.Shader, opts *ebiten.DrawTrianglesShaderOptions)

func NewImageReplacer

func NewImageReplacer(width, height int) *ebiten.Image

func NewImageWithOptionsReplacer

func NewImageWithOptionsReplacer(bounds image.Rectangle, options *ebiten.NewImageOptions) *ebiten.Image

func SetNewImagePatch

func SetNewImagePatch(p *Patch)

func SetNewImageWithOptionsPatch

func SetNewImageWithOptionsPatch(p *Patch)

func SetTextPatch

func SetTextPatch(p *Patch)

func SetTrianglesShaderPatch

func SetTrianglesShaderPatch(p *Patch)

func TextDrawReplacer

func TextDrawReplacer(dst *ebiten.Image, str string, face font.Face, opts *ebiten.DrawImageOptions)

Types

type Patch

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

func NewPatchFunc

func NewPatchFunc(target, replace any) *Patch

func NewPatchMethod

func NewPatchMethod(obj any, method string, replace any) *Patch

func (*Patch) Disable

func (p *Patch) Disable()

func (*Patch) Enable

func (p *Patch) Enable()

Jump to

Keyboard shortcuts

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