mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-19 10:56:07 -05:00
b5c1f5222d
* Move rendering stuff out of d2common into d2render * Remove d2interface
23 lines
496 B
Go
23 lines
496 B
Go
package d2render
|
|
|
|
import (
|
|
"image/color"
|
|
)
|
|
|
|
type Surface interface {
|
|
Clear(color color.Color) error
|
|
DrawRect(width, height int, color color.Color)
|
|
DrawLine(x, y int, color color.Color)
|
|
DrawText(format string, params ...interface{})
|
|
GetSize() (width, height int)
|
|
GetDepth() int
|
|
Pop()
|
|
PopN(n int)
|
|
PushColor(color color.Color)
|
|
PushCompositeMode(mode CompositeMode)
|
|
PushFilter(filter Filter)
|
|
PushTranslation(x, y int)
|
|
Render(surface Surface) error
|
|
ReplacePixels(pixels []byte) error
|
|
}
|