Versions in this module Expand all Collapse all v0 v0.20.0 Nov 29, 2020 Changes in this version + type Renderer interface + Render func(screen *Screen) type Screen + func (screen *Screen) Display() Rect + func (screen *Screen) SetDisplay(X, Y, W, H int) v0.13.0 Jul 5, 2021 v0.12.0 Jun 8, 2021 v0.11.0 Dec 6, 2020 Changes in this version + const MC6845CursorEnd + const MC6845CursorHigh + const MC6845CursorLow + const MC6845CursorStart + const MC6845HorizontalDisplayed + const MC6845HorizontalSyncPosition + const MC6845HorizontalTotal + const MC6845InterlaceAndSkew + const MC6845LightPenHigh + const MC6845LightPenLow + const MC6845MaxScanlineAddress + const MC6845Nreg + const MC6845StartAddressHigh + const MC6845StartAddressLow + const MC6845SyncWidths + const MC6845VerticalDisplayed + const MC6845VerticalSyncPosition + const MC6845VerticalTotal + const MC6845VerticalTotalAdjust + var MC6845Defaults = [MC6845Nreg]byte + var MC6845Masks = [MC6845Nreg]byte + type Display interface + Update func(screen *Screen) + type MC6845 struct + CursorEnd byte + CursorHigh byte + CursorLow byte + CursorStart byte + HorizontalDisplayed byte + HorizontalSyncPosition byte + HorizontalTotal byte + InterlaceAndSkew byte + LightPenHigh byte + LightPenLow byte + MaxScanlineAddress byte + OnHSync device.Callback + OnVSync device.Callback + StartAddressHigh byte + StartAddressLow byte + SyncWidths byte + VerticalDisplayed byte + VerticalSyncPosition byte + VerticalTotal byte + VerticalTotalAdjust byte + func NewMC6845() *MC6845 + func (mc *MC6845) CurrentCol() byte + func (mc *MC6845) CurrentLine() byte + func (mc *MC6845) CurrentRow() byte + func (mc *MC6845) Emulate(tstates int) + func (mc *MC6845) InHSync() bool + func (mc *MC6845) InVSync() bool + func (mc *MC6845) Init() + func (mc *MC6845) OnClock() + func (mc *MC6845) Read(port byte) byte + func (mc *MC6845) ReadRegister(register byte) byte + func (mc *MC6845) Register(index byte) byte + func (mc *MC6845) Reset() + func (mc *MC6845) SelectRegister(selected byte) + func (mc *MC6845) Selected() byte + func (mc *MC6845) SetDefaults(defaults [MC6845Nreg]byte) + func (mc *MC6845) Write(port byte, data byte) + func (mc *MC6845) WriteRegister(register, data byte) + type Rect struct + H int + W int + X int + Y int + func (r *Rect) Crop(or *Rect) + func (r *Rect) Intersect(o *Rect) Rect + func (r *Rect) IsEmpty() bool + func (r *Rect) Resize(w, h int) + func (r *Rect) Scale(sx, sy float32) + func (r *Rect) Translate(dx, dy int) + type Screen struct + func NewScreen(width, height int, palette []uint32) *Screen + func (screen *Screen) Clear(index int) + func (screen *Screen) Data() []uint32 + func (screen *Screen) DirtyRects() []int + func (screen *Screen) GetColour(index int) uint32 + func (screen *Screen) GetPixel(x, y int) uint32 + func (screen *Screen) Height() int + func (screen *Screen) IsDirty() bool + func (screen *Screen) Palette() []uint32 + func (screen *Screen) Rects() []Rect + func (screen *Screen) ScaleX() float32 + func (screen *Screen) ScaleY() float32 + func (screen *Screen) SetDirty(dirty bool) + func (screen *Screen) SetPixel(x, y int, colour uint32) + func (screen *Screen) SetPixelIndex(x, y int, index int) + func (screen *Screen) SetScaleX(scale float32) + func (screen *Screen) SetScaleY(scale float32) + func (screen *Screen) SetView(X, Y, W, H int) + func (screen *Screen) View() Rect + func (screen *Screen) Width() int + type Video interface + EndFrame func() + Screen func() *Screen