Documentation
¶
Index ¶
- type FrameBuffer
- func (buff *FrameBuffer) AddColorAttachment(attachment IAttachment, index uint32)
- func (buff *FrameBuffer) AddDepthAttachment(attachment IAttachment)
- func (buff *FrameBuffer) AddDepthStencilAttachment(attachment IAttachment)
- func (buff *FrameBuffer) AddStencilAttachment(attachment IAttachment)
- func (buff *FrameBuffer) Bind()
- func (buff *FrameBuffer) CheckCompleteness() error
- func (buff *FrameBuffer) Clear()
- func (buff *FrameBuffer) Destroy()
- func (buff *FrameBuffer) Finish() error
- func (buff *FrameBuffer) GetFBO() uint32
- func (buff *FrameBuffer) GetType() Type
- func (buff *FrameBuffer) Unbind()
- func (buff *FrameBuffer) UnmarshalYAML(value *yaml.Node) error
- type IAttachment
- type IFrameBuffer
- type RenderBuffer
- type Type
- type Viewport
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 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()
Click to show internal directories.
Click to hide internal directories.