mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 13:07:26 +01:00
31 lines
676 B
Go
31 lines
676 B
Go
package graphics
|
|
|
|
import (
|
|
"github.com/hajimehoshi/go-ebiten/graphics/matrix"
|
|
)
|
|
|
|
type Context interface {
|
|
Clear()
|
|
Fill(r, g, b uint8)
|
|
// TODO: Refacotring
|
|
DrawTexture(id TextureId,
|
|
geometryMatrix matrix.Geometry,
|
|
colorMatrix matrix.Color)
|
|
DrawRenderTarget(id RenderTargetId,
|
|
geometryMatrix matrix.Geometry,
|
|
colorMatrix matrix.Color)
|
|
DrawTextureParts(id TextureId,
|
|
parts []TexturePart,
|
|
geometryMatrix matrix.Geometry,
|
|
colorMatrix matrix.Color)
|
|
DrawRenderTargetParts(id RenderTargetId,
|
|
parts []TexturePart,
|
|
geometryMatrix matrix.Geometry,
|
|
colorMatrix matrix.Color)
|
|
|
|
ResetOffscreen()
|
|
SetOffscreen(id RenderTargetId)
|
|
|
|
// TODO: glTextureSubImage2D
|
|
}
|