NewTexture2DFromData creates a new texture from data
(width, height int, format int, formatType, iformat int, data interface{})
| 104 | |
| 105 | // NewTexture2DFromData creates a new texture from data |
| 106 | func 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 |
| 114 | func NewTexture2DFromCompressedData(width, height int, iformat int32, size int32, data interface{}) *Texture2D { |
no test coverage detected