mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +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.
|
// Exec executes the disposeCommand.
|
||||||
func (c *disposeCommand) Exec(indexOffset int) error {
|
func (c *disposeCommand) Exec(indexOffset int) error {
|
||||||
c.target.image.Delete()
|
c.target.image.Dispose()
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ type GraphicsDriver interface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Image interface {
|
type Image interface {
|
||||||
Delete()
|
Dispose()
|
||||||
IsInvalidated() bool
|
IsInvalidated() bool
|
||||||
Pixels() ([]byte, error)
|
Pixels() ([]byte, error)
|
||||||
SetAsDestination()
|
SetAsDestination()
|
||||||
|
@ -30,7 +30,7 @@ func (i *Image) IsInvalidated() bool {
|
|||||||
return !i.driver.context.isTexture(i.textureNative)
|
return !i.driver.context.isTexture(i.textureNative)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (i *Image) Delete() {
|
func (i *Image) Dispose() {
|
||||||
if i.framebuffer != nil {
|
if i.framebuffer != nil {
|
||||||
i.framebuffer.delete(&i.driver.context)
|
i.framebuffer.delete(&i.driver.context)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user