Class Framebuffer
- Namespace
- ReFuel.Graphics.OpenGL
- Assembly
- ReFuel.dll
public class Framebuffer : GLObject, IDisposable
- Inheritance
-
Framebuffer
- Implements
-
- Inherited Members
-
Constructors
Framebuffer()
Properties
NumberOfSamples
public int NumberOfSamples { get; }
Property Value
- int
Size
public Vector2i Size { get; }
Property Value
- Vector2i
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
IsComplete(bool)
public bool IsComplete(bool assert = false)
Parameters
assert
bool
Returns
- bool
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