Versions in this module Expand all Collapse all v0 v0.1.2 Dec 5, 2019 Changes in this version type Texture2D + func NewTexture2DFromCompressedData(width, height int, iformat int32, size int32, data interface{}) *Texture2D + func (t *Texture2D) Compressed() bool + func (t *Texture2D) SetCompressedData(width, height int, iformat int32, size int32, data interface{}) v0.1.0 Mar 14, 2019 Changes in this version + func DecodeImage(imgfile string) (*image.RGBA, error) + type Animator struct + func NewAnimator(tex *Texture2D, htiles, vtiles int) *Animator + func (a *Animator) Cycles() int + func (a *Animator) Restart() + func (a *Animator) SetDispTime(dtime time.Duration) + func (a *Animator) SetMaxCycles(maxCycles int) + func (a *Animator) Update(now time.Time) + type Texture2D struct + func NewBoard(width, height int, c1, c2, c3, c4 *math32.Color, alpha float32) *Texture2D + func NewTexture2DFromData(width, height int, format int, formatType, iformat int, data interface{}) *Texture2D + func NewTexture2DFromImage(imgfile string) (*Texture2D, error) + func NewTexture2DFromRGBA(rgba *image.RGBA) *Texture2D + func (t *Texture2D) Dispose() + func (t *Texture2D) GetUniformNames() (sampler, info string) + func (t *Texture2D) Height() int + func (t *Texture2D) Incref() *Texture2D + func (t *Texture2D) Offset() (float32, float32) + func (t *Texture2D) RenderSetup(gs *gls.GLS, slotIdx, uniIdx int) + func (t *Texture2D) Repeat() (float32, float32) + func (t *Texture2D) SetData(width, height int, format int, formatType, iformat int, data interface{}) + func (t *Texture2D) SetFlipY(state bool) + func (t *Texture2D) SetFromRGBA(rgba *image.RGBA) + func (t *Texture2D) SetImage(imgfile string) error + func (t *Texture2D) SetMagFilter(magFilter uint32) + func (t *Texture2D) SetMinFilter(minFilter uint32) + func (t *Texture2D) SetOffset(x, y float32) + func (t *Texture2D) SetRepeat(x, y float32) + func (t *Texture2D) SetUniformNames(sampler, info string) + func (t *Texture2D) SetVisible(state bool) + func (t *Texture2D) SetWrapS(wrapS uint32) + func (t *Texture2D) SetWrapT(wrapT uint32) + func (t *Texture2D) Visible() bool + func (t *Texture2D) Width() int