(rect, srcRect *sdl.FRect, texture *sdl.Texture, worldSpace bool)
| 3293 | } |
| 3294 | |
| 3295 | func NewGUIImage(rect, srcRect *sdl.FRect, texture *sdl.Texture, worldSpace bool) *GUIImage { |
| 3296 | icon := &GUIImage{Rect: rect, SrcRect: srcRect, Texture: texture, WorldSpace: worldSpace, TintByFontColor: true, Visible: true} |
| 3297 | if icon.Rect == nil { |
| 3298 | icon.Rect = &sdl.FRect{ |
| 3299 | W: float32(srcRect.W), |
| 3300 | H: float32(srcRect.H), |
| 3301 | } |
| 3302 | } |
| 3303 | return icon |
| 3304 | } |
| 3305 | |
| 3306 | func (image *GUIImage) Update() {} |
| 3307 |
no outgoing calls
no test coverage detected