mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
graphicsdriver: Remove MaxImageSize
This commit is contained in:
parent
18d109e3df
commit
d29cabca43
@ -27,17 +27,6 @@ var (
|
||||
maxImageSize = 0
|
||||
)
|
||||
|
||||
// MaxImageSize returns the maximum of width/height of an image.
|
||||
func MaxImageSize() int {
|
||||
if maxImageSize == 0 {
|
||||
maxImageSize = driver().MaxImageSize()
|
||||
if maxImageSize == 0 {
|
||||
panic("graphics: failed to get the max texture size")
|
||||
}
|
||||
}
|
||||
return maxImageSize
|
||||
}
|
||||
|
||||
// imageState is a state of an image.
|
||||
type imageState int
|
||||
|
||||
|
@ -22,7 +22,6 @@ import (
|
||||
type GraphicsDriver interface {
|
||||
SetVertices(vertices []float32, indices []uint16)
|
||||
Flush()
|
||||
MaxImageSize() int
|
||||
NewImage(width, height int) (Image, error)
|
||||
NewScreenFramebufferImage(width, height int) (Image, error)
|
||||
Reset() error
|
||||
|
@ -105,7 +105,3 @@ func (d *Driver) Draw(indexLen int, indexOffset int, mode graphics.CompositeMode
|
||||
func (d *Driver) Flush() {
|
||||
d.context.flush()
|
||||
}
|
||||
|
||||
func (d *Driver) MaxImageSize() int {
|
||||
return d.context.getMaxTextureSize()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user