Image holds data and properties of an .jpg, .gif, or .png file
| 91 | |
| 92 | // Image holds data and properties of an .jpg, .gif, or .png file |
| 93 | type Image interface { |
| 94 | Data() interface{} |
| 95 | Width() int |
| 96 | Height() int |
| 97 | } |
| 98 | |
| 99 | // UploadTexture sends the image to the GPU, to be kept in GPU RAM |
| 100 | func UploadTexture(img Image) *gl.Texture { |
no outgoing calls
no test coverage detected