Versions in this module Expand all Collapse all v0 v0.7.2 Apr 1, 2019 Changes in this version + type GLContext struct + func NewGLContext() (*GLContext, error) + type GoGLBackend struct + func New(x, y, w, h int, ctx *GLContext) (*GoGLBackend, error) + func (b *GoGLBackend) Activate() + func (b *GoGLBackend) AsImage() backendbase.Image + func (b *GoGLBackend) CanUseAsImage(b2 backendbase.Backend) bool + func (b *GoGLBackend) Clear(pts [4][2]float64) + func (b *GoGLBackend) ClearClip() + func (b *GoGLBackend) Clip(pts [][2]float64) + func (b *GoGLBackend) DrawImage(dimg backendbase.Image, sx, sy, sw, sh float64, pts [4][2]float64, ...) + func (b *GoGLBackend) Fill(style *backendbase.FillStyle, pts [][2]float64) + func (b *GoGLBackend) FillImageMask(style *backendbase.FillStyle, mask *image.Alpha, pts [][2]float64) + func (b *GoGLBackend) GetImageData(x, y, w, h int) *image.RGBA + func (b *GoGLBackend) LoadImage(src image.Image) (backendbase.Image, error) + func (b *GoGLBackend) LoadImagePattern(data backendbase.ImagePatternData) backendbase.ImagePattern + func (b *GoGLBackend) LoadLinearGradient(data backendbase.Gradient) backendbase.LinearGradient + func (b *GoGLBackend) LoadRadialGradient(data backendbase.Gradient) backendbase.RadialGradient + func (b *GoGLBackend) PutImageData(img *image.RGBA, x, y int) + func (b *GoGLBackend) SetBounds(x, y, w, h int) + func (b *GoGLBackend) Size() (int, int) + type GoGLBackendOffscreen struct + TextureID uint32 + func NewOffscreen(w, h int, alpha bool, ctx *GLContext) (*GoGLBackendOffscreen, error) + func (b *GoGLBackendOffscreen) AsImage() backendbase.Image + func (b *GoGLBackendOffscreen) Delete() + func (b *GoGLBackendOffscreen) SetSize(w, h int) + 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)