add Picture.IsNil method
This commit is contained in:
parent
12a6bd1e25
commit
24608a6068
|
@ -48,6 +48,11 @@ func (p Picture) Delete() {
|
|||
p.texture.Delete()
|
||||
}
|
||||
|
||||
// IsNil returns true if a picture is no picture.
|
||||
func (p Picture) IsNil() bool {
|
||||
return p.texture == nil
|
||||
}
|
||||
|
||||
// Texture returns a pointer to the underlying OpenGL texture of a picture.
|
||||
//
|
||||
// Note, that the parent of this texture is pixelgl.NoOpDoer.
|
||||
|
|
Loading…
Reference in New Issue