videomemory

package
v0.0.0-...-89247e0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultVideoMode  VideoMode = 1
	HiResVideoMode    VideoMode = 2
	ExtendedVideoMode VideoMode = 3

	NoPlane     Plane = 0
	FirstPlane  Plane = 1
	SecondPlane Plane = 2
	BothPlanes  Plane = 3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Plane

type Plane byte

type VideoMemory

type VideoMemory struct {
	VideoMode VideoMode
	Plane     Plane
	// contains filtered or unexported fields
}

func NewVideoMemory

func NewVideoMemory() *VideoMemory

NewVideoMemory creates and initializes a new instance

func (*VideoMemory) Clear

func (vmem *VideoMemory) Clear()

func (*VideoMemory) Get

func (vmem *VideoMemory) Get(plane Plane, x, y int) bool

func (*VideoMemory) GetIndex

func (vmem *VideoMemory) GetIndex(plane Plane, index int) bool

func (*VideoMemory) Height

func (vmem *VideoMemory) Height() int

func (*VideoMemory) RenderHeight

func (vmem *VideoMemory) RenderHeight() int

func (*VideoMemory) RenderWidth

func (vmem *VideoMemory) RenderWidth() int

func (*VideoMemory) ScrollDown

func (vmem *VideoMemory) ScrollDown(lines int)

func (*VideoMemory) ScrollLeft

func (vmem *VideoMemory) ScrollLeft()

func (*VideoMemory) ScrollRight

func (vmem *VideoMemory) ScrollRight()

func (*VideoMemory) ScrollUp

func (vmem *VideoMemory) ScrollUp(lines int)

func (*VideoMemory) Set

func (vmem *VideoMemory) Set(plane Plane, x, y int, value bool)

func (*VideoMemory) SetAll

func (vmem *VideoMemory) SetAll(value bool)

func (*VideoMemory) ToIndex

func (vmem *VideoMemory) ToIndex(x, y int) int

func (*VideoMemory) Width

func (vmem *VideoMemory) Width() int

type VideoMode

type VideoMode byte

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL