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.
Click to show internal directories.
Click to hide internal directories.