ebiten/graphics/context.go

31 lines
676 B
Go
Raw Normal View History

2013-12-02 13:45:10 +01:00
package graphics
import (
"github.com/hajimehoshi/go-ebiten/graphics/matrix"
)
2013-12-13 22:10:24 +01:00
type Context interface {
2013-12-02 13:45:10 +01:00
Clear()
Fill(r, g, b uint8)
// TODO: Refacotring
2013-12-02 13:45:10 +01:00
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
2013-12-02 13:45:10 +01:00
}