Class Framebuffer
- Namespace
- ValveResourceFormat.Renderer
- Assembly
- Renderer.dll
OpenGL framebuffer object with color and depth attachments.
public class FramebufferInheritance
Derived
Inherited Members
Constructors
Framebuffer(string)
public Framebuffer(string name)Parameters
namestring
Properties
ClearColor
public Color4 ClearColor { get; set; }Property Value
ClearMask
public ClearBufferMask ClearMask { get; set; }Property Value
- ClearBufferMask
Color
public RenderTexture? Color { get; protected set; }Property Value
ColorFormat
public Framebuffer.AttachmentFormat? ColorFormat { get; protected set; }Property Value
Depth
public RenderTexture? Depth { get; protected set; }Property Value
DepthFormat
public Framebuffer.DepthAttachmentFormat? DepthFormat { get; protected set; }Property Value
FboHandle
public int FboHandle { get; }Property Value
GLDefaultFramebuffer
public static Framebuffer GLDefaultFramebuffer { get; }Property Value
Height
public int Height { get; protected set; }Property Value
InitialStatus
public FramebufferErrorCode InitialStatus { get; }Property Value
- FramebufferErrorCode
NumMips
public int NumMips { get; set; }Property Value
NumSamples
public int NumSamples { get; set; }Property Value
Stencil
public RenderTexture? Stencil { get; protected set; }Property Value
Target
public TextureTarget Target { get; protected set; }Property Value
- TextureTarget
TargetState
public FramebufferTarget TargetState { get; set; }Property Value
- FramebufferTarget
Width
public int Width { get; protected set; }Property Value
Methods
AttachColorMipLevel(int)
public void AttachColorMipLevel(int mipLevel)Parameters
mipLevelint
Bind(FramebufferTarget)
public void Bind(FramebufferTarget targetState)Parameters
targetStateFramebufferTarget
BindAndClear(FramebufferTarget)
public void BindAndClear(FramebufferTarget targetState = FramebufferTarget.Framebuffer)Parameters
targetStateFramebufferTarget
ChangeFormat(AttachmentFormat?, DepthAttachmentFormat?, FramebufferAttachment?)
public void ChangeFormat(Framebuffer.AttachmentFormat? colorFormat, Framebuffer.DepthAttachmentFormat? depthFormat, FramebufferAttachment? framebufferAttachment = null)Parameters
colorFormatFramebuffer.AttachmentFormat?depthFormatFramebuffer.DepthAttachmentFormat?framebufferAttachmentFramebufferAttachment?
CheckStatus_ThrowIfIncomplete(string)
public void CheckStatus_ThrowIfIncomplete(string name = "")Parameters
namestring
Delete()
public void Delete()Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)Parameters
objobject?-
The object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()Returns
- int
-
A hash code for the current object.
GetMipSize(int)
public Vector2i GetMipSize(int level)Parameters
levelint
Returns
HasValidDimensions()
public bool HasValidDimensions()Returns
Initialize()
public FramebufferErrorCode Initialize()Returns
- FramebufferErrorCode
Prepare(string, int, int, int, AttachmentFormat?, DepthAttachmentFormat?)
public static Framebuffer Prepare(string name, int width, int height, int msaa, Framebuffer.AttachmentFormat? colorFormat, Framebuffer.DepthAttachmentFormat? depthFormat)Parameters
namestringwidthintheightintmsaaintcolorFormatFramebuffer.AttachmentFormat?depthFormatFramebuffer.DepthAttachmentFormat?
Returns
Resize(int, int, int)
public void Resize(int width, int height, int msaa)Parameters
Resize(int, int)
public void Resize(int width, int height)Parameters
Operators
operator ==(Framebuffer?, Framebuffer?)
public static bool operator ==(Framebuffer? left, Framebuffer? right)Parameters
leftFramebuffer?rightFramebuffer?
Returns
operator !=(Framebuffer?, Framebuffer?)
public static bool operator !=(Framebuffer? left, Framebuffer? right)Parameters
leftFramebuffer?rightFramebuffer?