mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
ebiten: Bug fix: Wrong argument type at DrawImageWithShader
This commit is contained in:
parent
a159f55520
commit
ec9863dfef
2
image.go
2
image.go
@ -364,7 +364,7 @@ type DrawImageWithShaderOptions struct {
|
|||||||
// When the image i is disposed, DrawImageWithShader does nothing.
|
// When the image i is disposed, DrawImageWithShader does nothing.
|
||||||
//
|
//
|
||||||
// This API is experimental.
|
// This API is experimental.
|
||||||
func (i *Image) DrawImageWithShader(img *Image, shader *Shader, options *DrawRectangleWithShaderOptions) {
|
func (i *Image) DrawImageWithShader(img *Image, shader *Shader, options *DrawImageWithShaderOptions) {
|
||||||
w, h := img.Size()
|
w, h := img.Size()
|
||||||
op := &DrawRectangleWithShaderOptions{
|
op := &DrawRectangleWithShaderOptions{
|
||||||
Images: [4]*Image{img},
|
Images: [4]*Image{img},
|
||||||
|
Loading…
Reference in New Issue
Block a user