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

Method SetCompressedData

texture/texture2D.go:198–207  ·  view source on GitHub ↗

SetCompressedData sets the compressed texture data

(width, height int, iformat int32, size int32, data interface{})

Source from the content-addressed store, hash-verified

196
197// SetCompressedData sets the compressed texture data
198func (t *Texture2D) SetCompressedData(width, height int, iformat int32, size int32, data interface{}) {
199
200 t.width = int32(width)
201 t.height = int32(height)
202 t.iformat = iformat
203 t.compressed = true
204 t.size = size
205 t.data = data
206 t.updateData = true
207}
208
209// SetVisible sets the visibility state of the texture
210func (t *Texture2D) SetVisible(state bool) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected