mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +01:00
graphicsdriver: Rename Delete -> Dispose
This commit is contained in:
parent
cc2174bd69
commit
2313f79160
@ -359,7 +359,7 @@ func (c *disposeCommand) String() string {
|
||||
|
||||
// Exec executes the disposeCommand.
|
||||
func (c *disposeCommand) Exec(indexOffset int) error {
|
||||
c.target.image.Delete()
|
||||
c.target.image.Dispose()
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@ type GraphicsDriver interface {
|
||||
}
|
||||
|
||||
type Image interface {
|
||||
Delete()
|
||||
Dispose()
|
||||
IsInvalidated() bool
|
||||
Pixels() ([]byte, error)
|
||||
SetAsDestination()
|
||||
|
@ -30,7 +30,7 @@ func (i *Image) IsInvalidated() bool {
|
||||
return !i.driver.context.isTexture(i.textureNative)
|
||||
}
|
||||
|
||||
func (i *Image) Delete() {
|
||||
func (i *Image) Dispose() {
|
||||
if i.framebuffer != nil {
|
||||
i.framebuffer.delete(&i.driver.context)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user