Documentation ¶
Index ¶
- Constants
- type DumpCmd
- type GB
- func (g *GB) Deserialize(state io.Reader)
- func (g *GB) Dump(cmd DumpCmd, args ...any) ([]uint8, error)
- func (g *GB) IsCGB() bool
- func (g *GB) Load(cmd LoadCmd, args ...any) error
- func (g *GB) Model() Model
- func (g *GB) Read(addr uint16) uint8
- func (g *GB) Reset(hasBIOS bool)
- func (g *GB) Resolution() (w int, h int)
- func (g *GB) RunFrame()
- func (g *GB) Screen() []color.NRGBA
- func (g *GB) Serialize(state io.Writer)
- func (g *GB) SetKeyInput(key string, press bool)
- func (g *GB) Title() string
- func (g *GB) Write(addr uint16, val uint8)
- type LoadCmd
- type Model
Constants ¶
View Source
const KB, MB = 1024, 1024 * 1024
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GB ¶
type GB struct {
// contains filtered or unexported fields
}
func (*GB) Deserialize ¶
func (*GB) IsCGB ¶
IsCGBMode returns true if the hardware has CGB features (i.e., it's a CGB or AGB).
func (*GB) Resolution ¶
func (*GB) SetKeyInput ¶
Click to show internal directories.
Click to hide internal directories.