ebiten: github.com/hajimehoshi/ebiten/internal/graphicsdriver/metal Index | Files | Directories

package metal

import "github.com/hajimehoshi/ebiten/internal/graphicsdriver/metal"

Index

Package Files

driver.go view_macos.go

type Driver Uses

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

func Get Uses

func Get() *Driver

func (*Driver) Begin Uses

func (d *Driver) Begin()

func (*Driver) Draw Uses

func (d *Driver) Draw(indexLen int, indexOffset int, mode graphics.CompositeMode, colorM *affine.ColorM, filter graphics.Filter, address graphics.Address) error

func (*Driver) End Uses

func (d *Driver) End()

func (*Driver) Flush Uses

func (d *Driver) Flush()

func (*Driver) IsGL Uses

func (d *Driver) IsGL() bool

func (*Driver) NeedsRestoring Uses

func (d *Driver) NeedsRestoring() bool

func (*Driver) NewImage Uses

func (d *Driver) NewImage(width, height int) (driver.Image, error)

func (*Driver) NewScreenFramebufferImage Uses

func (d *Driver) NewScreenFramebufferImage(width, height int) (driver.Image, error)

func (*Driver) Reset Uses

func (d *Driver) Reset() error

func (*Driver) ResetSource Uses

func (d *Driver) ResetSource()

func (*Driver) SetThread Uses

func (d *Driver) SetThread(thread *thread.Thread)

func (*Driver) SetVertices Uses

func (d *Driver) SetVertices(vertices []float32, indices []uint16)

func (*Driver) SetVsyncEnabled Uses

func (d *Driver) SetVsyncEnabled(enabled bool)

func (*Driver) SetWindow Uses

func (d *Driver) SetWindow(window uintptr)

func (*Driver) VDirection Uses

func (d *Driver) VDirection() driver.VDirection

type Image Uses

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

func (*Image) Dispose Uses

func (i *Image) Dispose()

func (*Image) IsInvalidated Uses

func (i *Image) IsInvalidated() bool

func (*Image) Pixels Uses

func (i *Image) Pixels() ([]byte, error)

func (*Image) ReplacePixels Uses

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

func (*Image) SetAsDestination Uses

func (i *Image) SetAsDestination()

func (*Image) SetAsSource Uses

func (i *Image) SetAsSource()

Directories

PathSynopsis
caPackage ca provides access to Apple's Core Animation API (https://developer.apple.com/documentation/quartzcore).
mtlPackage mtl provides access to Apple's Metal API (https://developer.apple.com/documentation/metal).
nsPackage ns provides access to Apple's AppKit API (https://developer.apple.com/documentation/appkit).

Package metal imports 11 packages (graph). Updated 2019-06-19 with GOOS=darwin. Refresh now. Tools for package owners.