vbe

package
v0.0.0-...-a662229 Latest Latest
Warning

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

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

Documentation

Overview

Package vbe provides access to the VESA VBE framebuffer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Init initializes the VBE framebuffer based on the info data provided by multiboot.

func IsEnable

func IsEnable() bool

IsEnable reports whether the VBE framebuffer has been initialized.

func SetCurrView

func SetCurrView(v *View)

SetCurrView sets the current view, commiting pixel data to the framebuffer.

Types

type View

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

View provides a canvas for offscreen rendering which may be commited to the framebuffer.

var (

	// DefaultView is the default view used for rendering.
	DefaultView *View
)

func NewView

func NewView() *View

NewView returns a new view for offscreen rendering which may be commited to the framebuffer.

func SaveCurrView

func SaveCurrView() *View

SaveCurrView returns the current view.

func (*View) Canvas

func (v *View) Canvas() draw.Image

Canvas returns a canvas for rendering into the given view.

func (*View) Clear

func (v *View) Clear()

Clear clears the given view, setting every pixel to black colour.

func (*View) Commit

func (v *View) Commit()

Commit commits the view to the framebuffer, copying every pixel of the view to the framebuffer.

func (*View) CommitRect

func (v *View) CommitRect(rect image.Rectangle)

CommitRect commits the given rectangle of the view to the framebuffer, copying the pixels of the view within rect to the framebuffer.

Jump to

Keyboard shortcuts

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