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

Function NewTexture2DFromData

texture/texture2D.go:106–111  ·  view source on GitHub ↗

NewTexture2DFromData creates a new texture from data

(width, height int, format int, formatType, iformat int, data interface{})

Source from the content-addressed store, hash-verified

104
105// NewTexture2DFromData creates a new texture from data
106func NewTexture2DFromData(width, height int, format int, formatType, iformat int, data interface{}) *Texture2D {
107
108 t := newTexture2D()
109 t.SetData(width, height, format, formatType, iformat, data)
110 return t
111}
112
113// NewTexture2DFromCompressedData creates a new compressed texture from data
114func NewTexture2DFromCompressedData(width, height int, iformat int32, size int32, data interface{}) *Texture2D {

Callers 1

NewBoardFunction · 0.85

Calls 2

newTexture2DFunction · 0.85
SetDataMethod · 0.45

Tested by

no test coverage detected