(path string)
| 59 | } |
| 60 | |
| 61 | func (t *Texture) Lookup(path string) (x, y, dx, dy float32) { |
| 62 | if index, ok := t.lookup[path]; ok { |
| 63 | return t.coord(index) |
| 64 | } else { |
| 65 | return t.coord(t.load(path)) |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | func (t *Texture) mark(index int) { |
| 70 | t.counter++ |