mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
parent
44088cf14e
commit
7dd9150b86
@ -80,7 +80,7 @@ func (g *Graphics) Reset() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (g *Graphics) Draw(indexLen int, indexOffset int, mode driver.CompositeMode, colorM *affine.ColorM, filter driver.Filter, address driver.Address) error {
|
func (g *Graphics) Draw(indexLen int, indexOffset int, mode driver.CompositeMode, colorM *affine.ColorM, filter driver.Filter, address driver.Address) error {
|
||||||
// TODO: Implement
|
g.game.Draw(indexLen, indexOffset, mode, colorM, filter, address)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,6 +22,7 @@ import (
|
|||||||
"syscall/js"
|
"syscall/js"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
|
"github.com/hajimehoshi/ebiten/internal/affine"
|
||||||
"github.com/hajimehoshi/ebiten/internal/driver"
|
"github.com/hajimehoshi/ebiten/internal/driver"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -104,6 +105,11 @@ func (g *Game) SetVertices(vertices []float32, indices []uint16) {
|
|||||||
g.binding.Call("SetVertices", vs, is)
|
g.binding.Call("SetVertices", vs, is)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (g *Game) Draw(indexLen int, indexOffset int, mode driver.CompositeMode, colorM *affine.ColorM, filter driver.Filter, address driver.Address) {
|
||||||
|
// TODO: Implement this
|
||||||
|
g.binding.Call("Draw", indexLen, indexOffset)
|
||||||
|
}
|
||||||
|
|
||||||
type RenderTarget2D struct {
|
type RenderTarget2D struct {
|
||||||
v js.Value
|
v js.Value
|
||||||
binding js.Value
|
binding js.Value
|
||||||
|
Loading…
Reference in New Issue
Block a user