FrameBuffer

package
v0.0.0-...-9749107 Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: GPL-3.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FrameBuffer

type FrameBuffer struct {
	Viewport Viewport
	Type     Type

	ColorAttachments  []IAttachment
	DepthAttachment   IAttachment
	StencilAttachment IAttachment
	// contains filtered or unexported fields
}

func GetCurrentFrameBuffer

func GetCurrentFrameBuffer() *FrameBuffer

func NewFrameBuffer

func NewFrameBuffer(viewport Viewport, fboType Type) FrameBuffer

func (*FrameBuffer) AddColorAttachment

func (buff *FrameBuffer) AddColorAttachment(attachment IAttachment, index uint32)

func (*FrameBuffer) AddDepthAttachment

func (buff *FrameBuffer) AddDepthAttachment(attachment IAttachment)

func (*FrameBuffer) AddDepthStencilAttachment

func (buff *FrameBuffer) AddDepthStencilAttachment(attachment IAttachment)

func (*FrameBuffer) AddStencilAttachment

func (buff *FrameBuffer) AddStencilAttachment(attachment IAttachment)

func (*FrameBuffer) Bind

func (buff *FrameBuffer) Bind()

func (*FrameBuffer) CheckCompleteness

func (buff *FrameBuffer) CheckCompleteness() error

func (*FrameBuffer) Clear

func (buff *FrameBuffer) Clear()

func (*FrameBuffer) Destroy

func (buff *FrameBuffer) Destroy()

func (*FrameBuffer) Finish

func (buff *FrameBuffer) Finish() error

func (*FrameBuffer) GetFBO

func (buff *FrameBuffer) GetFBO() uint32

func (*FrameBuffer) GetType

func (buff *FrameBuffer) GetType() Type

func (*FrameBuffer) Unbind

func (buff *FrameBuffer) Unbind()

func (*FrameBuffer) UnmarshalYAML

func (buff *FrameBuffer) UnmarshalYAML(value *yaml.Node) error

type IAttachment

type IAttachment interface {
	GetID() uint32
}

type IFrameBuffer

type IFrameBuffer interface {
	GetFBO() uint32
	GetType() Type
	Destroy()
	Bind()
	Clear()
}

type RenderBuffer

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

func NewDepth24Stencil8MultisampleRbo

func NewDepth24Stencil8MultisampleRbo(width int32, height int32, samples int32) *RenderBuffer

func NewDepth24Stencil8Rbo

func NewDepth24Stencil8Rbo(width int32, height int32) *RenderBuffer

func NewRenderBuffer

func NewRenderBuffer() *RenderBuffer

func (*RenderBuffer) Bind

func (buff *RenderBuffer) Bind()

func (*RenderBuffer) GetID

func (buff *RenderBuffer) GetID() uint32

func (*RenderBuffer) Unbind

func (buff *RenderBuffer) Unbind()

type Type

type Type string

type Viewport

type Viewport struct {
	PosX   int32 `yaml:"x-position"`
	PosY   int32 `yaml:"y-position"`
	Width  int32 `yaml:"width"`
	Height int32 `yaml:"height"`
}

func GetCurrentViewport

func GetCurrentViewport() Viewport

func (*Viewport) Bind

func (viewport *Viewport) Bind()

Jump to

Keyboard shortcuts

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