mipmap

package
v1.11.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeginFrame

func BeginFrame() error

func EndFrame

func EndFrame() error

func MipmapLevelForDownscale

func MipmapLevelForDownscale(det float32) int

func SetGraphicsDriver

func SetGraphicsDriver(graphics driver.Graphics)

Types

type GeoM

type GeoM struct {
	A  float32
	B  float32
	C  float32
	D  float32
	Tx float32
	Ty float32
}

type Mipmap

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

Mipmap is a set of shareable.Image sorted by the order of mipmap level. The level 0 image is a regular image and higher-level images are used for mipmap.

func New

func New(width, height int, volatile bool) *Mipmap

func NewScreenFramebufferMipmap

func NewScreenFramebufferMipmap(width, height int) *Mipmap

func (*Mipmap) At

func (m *Mipmap) At(x, y int) (r, g, b, a byte, err error)

func (*Mipmap) DrawImage

func (m *Mipmap) DrawImage(src *Mipmap, bounds image.Rectangle, geom GeoM, colorm *affine.ColorM, mode driver.CompositeMode, filter driver.Filter)

func (*Mipmap) DrawTriangles

func (m *Mipmap) DrawTriangles(src *Mipmap, vertices []float32, indices []uint16, colorm *affine.ColorM, mode driver.CompositeMode, filter driver.Filter, address driver.Address)

func (*Mipmap) Dump

func (m *Mipmap) Dump(name string, blackbg bool) error

func (*Mipmap) Fill

func (m *Mipmap) Fill(clr color.RGBA)

func (*Mipmap) MarkDisposed

func (m *Mipmap) MarkDisposed()

func (*Mipmap) ReplacePixels

func (m *Mipmap) ReplacePixels(pix []byte)

Jump to

Keyboard shortcuts

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