MCPcopy
hub / github.com/EngoEngine/engo / Image

Interface Image

common/render_filetype.go:93–97  ·  view source on GitHub ↗

Image holds data and properties of an .jpg, .gif, or .png file

Source from the content-addressed store, hash-verified

91
92// Image holds data and properties of an .jpg, .gif, or .png file
93type 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
100func UploadTexture(img Image) *gl.Texture {

Callers 5

UploadTextureFunction · 0.65
NewTextureResourceFunction · 0.65
NewTextureSingleFunction · 0.65
NewTextureResourceFunction · 0.65
NewTextureSingleFunction · 0.65

Implementers 1

ImageObjectcommon/render_filetype.go

Calls

no outgoing calls

Tested by

no test coverage detected