Texture represents a texture loaded in the GPU RAM (by using OpenGL), which defined dimensions and viewport
| 186 | |
| 187 | // Texture represents a texture loaded in the GPU RAM (by using OpenGL), which defined dimensions and viewport |
| 188 | type Texture struct { |
| 189 | id *gl.Texture |
| 190 | width float32 |
| 191 | height float32 |
| 192 | viewport engo.AABB |
| 193 | } |
| 194 | |
| 195 | // Width returns the width of the texture. |
| 196 | func (t Texture) Width() float32 { |
nothing calls this directly
no outgoing calls
no test coverage detected