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

Struct TextureResource

common/render_filetype.go:29–35  ·  view source on GitHub ↗

TextureResource is the resource used by the RenderSystem. It uses .jpg, .gif, and .png images

Source from the content-addressed store, hash-verified

27
28// TextureResource is the resource used by the RenderSystem. It uses .jpg, .gif, and .png images
29type TextureResource struct {
30 Texture *gl.Texture
31 Width float32
32 Height float32
33 Viewport *engo.AABB
34 url string
35}
36
37// URL is the file path of the TextureResource
38func (t TextureResource) URL() string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected