Skip to content

Commit f6373af

Browse files
committed
examples/ebiten-game-in-texture: fix ImageV
1 parent fd2c3f9 commit f6373af

File tree

1 file changed

+1
-1
lines changed
  • examples/ebiten-game-in-texture

1 file changed

+1
-1
lines changed

examples/ebiten-game-in-texture/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func showPictureLoadingDemo() {
2525
imgui.SetNextWindowPosV(imgui.NewVec2(basePos.X+60, 600), imgui.CondOnce, imgui.NewVec2(0, 0))
2626
imgui.Begin("Ebiten Active Image")
2727
imgui.Text(fmt.Sprintf("pointer = %v", texture.ID))
28-
imgui.ImageV(texture.ID, imgui.NewVec2(float32(texture.Width), float32(texture.Height)), imgui.NewVec2(0, 0), imgui.NewVec2(1, 1), imgui.NewVec4(1, 1, 1, 1), imgui.NewVec4(0, 0, 0, 0))
28+
imgui.ImageWithBgV(texture.ID, imgui.NewVec2(float32(texture.Width), float32(texture.Height)), imgui.NewVec2(0, 0), imgui.NewVec2(1, 1), imgui.NewVec4(0, 0, 0, 0), imgui.NewVec4(1, 1, 1, 1))
2929
imgui.End()
3030
}
3131

0 commit comments

Comments
 (0)