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

Method SetOffset

texture/texture2D.go:275–279  ·  view source on GitHub ↗

SetOffset sets the offset factor

(x, y float32)

Source from the content-addressed store, hash-verified

273
274// SetOffset sets the offset factor
275func (t *Texture2D) SetOffset(x, y float32) {
276
277 t.udata.offsetX = x
278 t.udata.offsetY = y
279}
280
281// Offset returns the current X and Y offset factors
282func (t *Texture2D) Offset() (float32, float32) {

Callers 2

UpdateMethod · 0.80
newTexture2DFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected