SetNil sets everything to nil, for shared image
()
| 745 | |
| 746 | // SetNil sets everything to nil, for shared image |
| 747 | func (im *Image) SetNil() { |
| 748 | im.View = vk.NullImageView |
| 749 | im.Image = vk.NullImage |
| 750 | im.Dev = nil |
| 751 | im.Host.SetNil() |
| 752 | im.Flags = 0 |
| 753 | } |
| 754 | |
| 755 | // SetSize sets the size. If the size is not the same as current, |
| 756 | // and Image owns the Host and / or Image, then those are resized. |