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)
|
2013-12-02 16:15:01 +01:00
|
|
|
// 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)
|
2013-12-15 15:41:33 +01:00
|
|
|
|
|
|
|
// TODO: glTextureSubImage2D
|
2013-12-02 13:45:10 +01:00
|
|
|
}
|