Framebuffer attachable render buffer. More...
Public Types | |
enum | Type { Color, Depth, Stencil, DepthStencil } |
Buffer type. More... | |
Public Member Functions | |
RenderBuffer (Type type, int glFormat) | |
Construct a render buffer. | |
void | Allocate (RenderContext ctx, int w, int h) |
Allocate this RenderBuffer. | |
override void | Create (RenderContext ctx) |
Create this RenderBuffer. | |
override void | Delete (RenderContext ctx) |
Delete this RenderBuffer. | |
Properties | |
Type | BufferType [get] |
Render buffer type. |
Framebuffer attachable render buffer.
Derm.Render.RenderBuffer.RenderBuffer | ( | Type | type, | |
int | glFormat | |||
) |
Construct a render buffer.
type | A RenderBuffer.Type specifying the type of the buffer. This parameter influence the framebuffer attachment, and the possible formats. | |
glFormat | A System.Int32 specifying the internal OpenGL format for this RenderBuffer. From OpenGL 3.2 specification:
/// Implementations are required to support the same internal formats for renderbuffers /// as the required formats for textures enumerated in section 3.8.1, with the exception /// of the color formats labelled “texture-only”. Requesting one of these internal /// formats for a renderbuffer will allocate at least the internal component sizes and /// exactly the component types shown for that format in tables 3.12- 3.13. /// |
void Derm.Render.RenderBuffer.Allocate | ( | RenderContext | ctx, | |
int | w, | |||
int | h | |||
) |
Allocate this RenderBuffer.
ctx | A RenderContext used for allocation. | |
w | A System.Int32 specifying the width of the renderbuffer. | |
h | A System.Int32 specifying the height of the renderbuffer. |
override void Derm.Render.RenderBuffer.Create | ( | RenderContext | ctx | ) | [virtual] |
override void Derm.Render.RenderBuffer.Delete | ( | RenderContext | ctx | ) | [virtual] |