MCPcopy Index your code
hub / github.com/g3n/engine / SetRepeat

Method SetRepeat

texture/texture2D.go:262–266  ·  view source on GitHub ↗

SetRepeat set the repeat factor

(x, y float32)

Source from the content-addressed store, hash-verified

260
261// SetRepeat set the repeat factor
262func (t *Texture2D) SetRepeat(x, y float32) {
263
264 t.udata.repeatX = x
265 t.udata.repeatY = y
266}
267
268// Repeat returns the current X and Y repeat factors
269func (t *Texture2D) Repeat() (float32, float32) {

Callers 2

NewAnimatorFunction · 0.80
newTexture2DFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected