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 (*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 ¶
CommitRect commits the given rectangle of the view to the framebuffer, copying the pixels of the view within rect to the framebuffer.