TextureResource is the resource used by the RenderSystem. It uses .jpg, .gif, and .png images
| 27 | |
| 28 | // TextureResource is the resource used by the RenderSystem. It uses .jpg, .gif, and .png images |
| 29 | type 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 |
| 38 | func (t TextureResource) URL() string { |
nothing calls this directly
no outgoing calls
no test coverage detected