Module OgamlGraphics.Renderbuffer.ColorBuffer

Color Renderbuffer
type t
Type of a color renderbuffer
val create : (module RenderTarget.T with type t = 'a) -> 'a -> OgamlMath.Vector2i.t -> t
Creates a color renderbuffer from a context and a size Raises RBO_Error if the requested size exceeds the maximum size allowed by the context.
val to_color_attachment : t -> Attachment.ColorAttachment.t
ColorBuffer implements the interface ColorAttachable
val size : t -> OgamlMath.Vector2i.t
Returns the size of a renderbuffer