Sprite is a potentially animated image positioned in space that always faces the camera.
| 14 | |
| 15 | // Sprite is a potentially animated image positioned in space that always faces the camera. |
| 16 | type Sprite struct { |
| 17 | Graphic // Embedded graphic |
| 18 | uniMVPM gls.Uniform // Model view projection matrix uniform location cache |
| 19 | } |
| 20 | |
| 21 | // NewSprite creates and returns a pointer to a sprite with the specified dimensions and material |
| 22 | func NewSprite(width, height float32, imat material.IMaterial) *Sprite { |
nothing calls this directly
no outgoing calls
no test coverage detected