graphicsdriver: Rename Delete -> Dispose

This commit is contained in:
Hajime Hoshi 2018-11-12 23:44:13 +09:00
parent cc2174bd69
commit 2313f79160
3 changed files with 3 additions and 3 deletions

View File

@ -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
} }

View File

@ -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()

View File

@ -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)
} }