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

Function NewTexture2DFromCompressedData

texture/texture2D.go:114–119  ·  view source on GitHub ↗

NewTexture2DFromCompressedData creates a new compressed texture from data

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

Source from the content-addressed store, hash-verified

112
113// NewTexture2DFromCompressedData creates a new compressed texture from data
114func NewTexture2DFromCompressedData(width, height int, iformat int32, size int32, data interface{}) *Texture2D {
115
116 t := newTexture2D()
117 t.SetCompressedData(width, height, iformat, size, data)
118 return t
119}
120
121// Incref increments the reference count for this texture
122// and returns a pointer to the geometry.

Callers

nothing calls this directly

Calls 2

newTexture2DFunction · 0.85
SetCompressedDataMethod · 0.80

Tested by

no test coverage detected