Documentation ¶
Rendered for darwin/amd64
Overview ¶
Package mtldriver provides a Metal driver for accessing a screen.
At this time, the Metal API is used only to present the final pixels to the screen. All rendering is performed on the CPU via the image/draw algorithms. Future work is to use mtl.Buffer, mtl.Texture, etc., and do more of the rendering work on the GPU.
Index ¶
- Variables
- func Main(f func(screen.Screen))
- type BGRA
- type Window
- func (w *Window) Draw(src2dst f64.Aff3, src screen.Texture, sr image.Rectangle, op draw.Op)
- func (w *Window) GetCursorPosition() (x, y float64)
- func (w *Window) HideCursor() error
- func (w *Window) MoveWindow(x, y, width, height int) error
- func (w *Window) NextEvent() interface{}
- func (w *Window) Publish()
- func (w *Window) Release()
- func (w *Window) Scale(dr image.Rectangle, src screen.Texture, sr image.Rectangle, op draw.Op)
- func (w *Window) SetBorderless(borderless bool) error
- func (w *Window) SetFullScreen(full bool) error
- func (w *Window) SetIcon(img image.Image) error
- func (w *Window) SetTitle(title string) error
- func (w *Window) SetTopMost(topMost bool) error
- func (w *Window) Upload(dp image.Point, src screen.Image, sr image.Rectangle)
Constants ¶
This section is empty.
Variables ¶
View Source
var NewBGRA = image.NewRGBA
Functions ¶
Types ¶
type Window ¶
Window implements screen.Window.
func (*Window) GetCursorPosition ¶
func (*Window) HideCursor ¶
func (*Window) MoveWindow ¶
func (*Window) SetBorderless ¶
func (*Window) SetFullScreen ¶
func (*Window) SetTopMost ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
internal
|
|
appkit
Package appkit provides access to Apple's AppKit API (https://developer.apple.com/documentation/appkit).
|
Package appkit provides access to Apple's AppKit API (https://developer.apple.com/documentation/appkit). |
coreanim
Package coreanim provides access to Apple's Core Animation API (https://developer.apple.com/documentation/quartzcore).
|
Package coreanim provides access to Apple's Core Animation API (https://developer.apple.com/documentation/quartzcore). |
Click to show internal directories.
Click to hide internal directories.