Class FrameBufferRenderTarget
- Namespace
- ReFuel.Graphics.OpenGL
- Assembly
- ReFuel.dll
public class FrameBufferRenderTarget : RenderTarget, IDisposable
- Inheritance
-
FrameBufferRenderTarget
- Implements
-
- Inherited Members
-
- Extension Methods
-
Constructors
FrameBufferRenderTarget()
public FrameBufferRenderTarget()
FrameBufferRenderTarget(Framebuffer, bool)
public FrameBufferRenderTarget(Framebuffer framebuffer, bool keepOpen = false)
Parameters
framebuffer
Framebuffer
keepOpen
bool
Properties
Framebuffer
public Framebuffer Framebuffer { get; }
Property Value
- Framebuffer
Height
public override int Height { get; }
Property Value
- int
Label
public string Label { get; set; }
Property Value
- string
Width
public override int Width { get; }
Property Value
- int
Methods
public void AttachRenderbuffer(FramebufferAttachment slot, InternalFormat format)
Parameters
slot
FramebufferAttachment
format
InternalFormat
AttachTexture2D(FramebufferAttachment, InternalFormat)
public void AttachTexture2D(FramebufferAttachment slot, InternalFormat format)
Parameters
slot
FramebufferAttachment
format
InternalFormat
Dispose(bool)
protected override void Dispose(bool isDisposing)
Parameters
isDisposing
bool
Initialize()
Resize(Vector2i, int)
public void Resize(Vector2i size, int samples)
Parameters
size
Vector2i
samples
int
TryGetAttachment(FramebufferAttachment, out int, out AttachmentType)
public bool TryGetAttachment(FramebufferAttachment slot, out int handle, out Framebuffer.AttachmentType type)
Parameters
slot
FramebufferAttachment
handle
int
type
Framebuffer.AttachmentType
Returns
- bool
Operators
implicit operator int(FrameBufferRenderTarget)
public static implicit operator int(FrameBufferRenderTarget target)
Parameters
target
FrameBufferRenderTarget
Returns
- int