Define common display interface (#31)

* issue #27 definition of Displayer interface
This commit is contained in:
Daniel Esteban
2019-04-24 18:56:49 +02:00
committed by Ron Evans
parent cd992bd7d6
commit 772a1044c4
+14
View File
@@ -0,0 +1,14 @@
package drivers
import "image/color"
type Displayer interface {
// Size returns the current size of the display.
Size() (x, y int16)
// SetPizel modifies the internal buffer.
SetPixel(x, y int16, c color.RGBA)
// Display sends the buffer (if any) to the screen.
Display() error
}