mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-06-30 11:05:23 +00:00
* Add PushBrightness to surface * Highlight selectable objects Check if mapentity is selectable. (seems reasonable) Request objects to highlight themselves is required (idk)
26 lines
567 B
Go
26 lines
567 B
Go
package d2render
|
|
|
|
import (
|
|
"image"
|
|
"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)
|
|
PushBrightness(brightness float64)
|
|
Render(surface Surface) error
|
|
ReplacePixels(pixels []byte) error
|
|
Screenshot() *image.RGBA
|
|
}
|