render

package
v0.0.0-...-54dc21a Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SDL colors
	WHITE      = uint32(0xFFFFFFFF)
	DARK_GRAY  = uint32(0xFF545454)
	LIGHT_GRAY = uint32(0xFFA8A8A8)
	BLACK      = uint32(0xFF000000)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FrameBuffer

type FrameBuffer [256][256]uint8

FrameBuffer is typedef'd to the internal resolution, where the value at an element is the 2-bit grayscale value. To support color, this should be a 3D uint8 array, where the last rank is 8-bit rgb

type LCD

type LCD struct {
	// contains filtered or unexported fields
}

func (*LCD) Init

func (l *LCD) Init()

type PPU

type PPU struct {
	FB FrameBuffer

	LCDC uint8 // FF40
}

func (*PPU) Init

func (p *PPU) Init()

Init initializes the framebuffer

Jump to

Keyboard shortcuts

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