framebuffer

package
v0.0.0-...-50c553c Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Framebuffer

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

Framebuffer is a fixed resolution texture that you can draw on.

func NewFrame

func NewFrame(width, height int, smooth, depth bool) *Framebuffer

NewFrame creates a new fully transparent Framebuffer with given dimensions in pixels.

func (*Framebuffer) Begin

func (f *Framebuffer) Begin()

Begin binds the Framebuffer. All draw operations will target this Framebuffer until End is called.

func (*Framebuffer) End

func (f *Framebuffer) End()

End unbinds the Framebuffer. All draw operations will go to whatever was bound before this Framebuffer.

func (*Framebuffer) ID

func (f *Framebuffer) ID() uint32

ID returns the OpenGL framebuffer ID of this Framebuffer.

func (*Framebuffer) Texture

func (f *Framebuffer) Texture() texture.Texture

Texture returns the Framebuffer's underlying Texture that the Framebuffer draws on.

Jump to

Keyboard shortcuts

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