Versions in this module Expand all Collapse all v0 v0.7.2 Apr 1, 2019 Changes in this version + type GLContext struct + func NewGLContext(glctx gl.Context) (*GLContext, error) + type Image struct + func (img *Image) Delete() + func (img *Image) Height() int + func (img *Image) Replace(src image.Image) error + func (img *Image) Size() (int, int) + func (img *Image) Width() int + type ImagePattern struct + func (ip *ImagePattern) Delete() + func (ip *ImagePattern) Replace(data backendbase.ImagePatternData) + type LinearGradient struct + func (g *LinearGradient) Delete() + func (lg *LinearGradient) Replace(data backendbase.Gradient) + type RadialGradient struct + func (g *RadialGradient) Delete() + func (rg *RadialGradient) Replace(data backendbase.Gradient) + type XMobileBackend struct + func New(x, y, w, h int, ctx *GLContext) (*XMobileBackend, error) + func (b *XMobileBackend) Activate() + func (b *XMobileBackend) AsImage() backendbase.Image + func (b *XMobileBackend) CanUseAsImage(b2 backendbase.Backend) bool + func (b *XMobileBackend) Clear(pts [4][2]float64) + func (b *XMobileBackend) ClearClip() + func (b *XMobileBackend) Clip(pts [][2]float64) + func (b *XMobileBackend) DrawImage(dimg backendbase.Image, sx, sy, sw, sh float64, pts [4][2]float64, ...) + func (b *XMobileBackend) Fill(style *backendbase.FillStyle, pts [][2]float64) + func (b *XMobileBackend) FillImageMask(style *backendbase.FillStyle, mask *image.Alpha, pts [][2]float64) + func (b *XMobileBackend) GetImageData(x, y, w, h int) *image.RGBA + func (b *XMobileBackend) LoadImage(src image.Image) (backendbase.Image, error) + func (b *XMobileBackend) LoadImagePattern(data backendbase.ImagePatternData) backendbase.ImagePattern + func (b *XMobileBackend) LoadLinearGradient(data backendbase.Gradient) backendbase.LinearGradient + func (b *XMobileBackend) LoadRadialGradient(data backendbase.Gradient) backendbase.RadialGradient + func (b *XMobileBackend) PutImageData(img *image.RGBA, x, y int) + func (b *XMobileBackend) SetBounds(x, y, w, h int) + func (b *XMobileBackend) Size() (int, int) + type XMobileBackendOffscreen struct + TextureID gl.Texture + func NewOffscreen(w, h int, alpha bool, ctx *GLContext) (*XMobileBackendOffscreen, error) + func (b *XMobileBackendOffscreen) AsImage() backendbase.Image + func (b *XMobileBackendOffscreen) Delete() + func (b *XMobileBackendOffscreen) SetSize(w, h int)