50 class FrameBufferProvider;
51 class FrameBuffer_Impl;
213 std::shared_ptr<FrameBuffer_Impl> impl;
1D texture array object class.
Definition: texture_1d_array.h:42
void attach_color(int attachment_index, const Texture1D &texture, int level=0)
Attach color buffer.
@ subtype_cube_map_negative_x
Definition: frame_buffer.h:57
@ subtype_cube_map_positive_z
Definition: frame_buffer.h:60
2D texture cube object class.
Definition: texture_cube.h:53
@ subtype_cube_map_positive_x
Definition: frame_buffer.h:56
@ framebuffer_read
Definition: frame_buffer.h:68
@ subtype_cube_map_negative_y
Definition: frame_buffer.h:59
void attach_color(int attachment_index, const Texture2D &texture, int level=0)
Attach color buffer.
bool is_null() const
Returns true if this object is invalid.
Definition: frame_buffer.h:92
void attach_color(int attachment_index, const Texture3D &texture, int depth, int level=0)
Attach color buffer.
2D texture object class.
Definition: texture_2d.h:42
void attach_color(int attachment_index, const RenderBuffer &render_buffer)
Attach color buffer.
void attach_depth(const TextureCube &texture, TextureSubtype subtype, int level=0)
FrameBuffer(GraphicContext &context)
Constructs a FrameBuffer.
void attach_depth_stencil(const Texture2D &texture, int level=0)
void attach_color(int attachment_index, const Texture2DArray &texture, int array_index=-1, int level=0)
Attach color buffer.
void detach_color(int attachment_index)
Detach color buffer.
void attach_stencil(const Texture2D &texture, int level=0)
@ framebuffer_draw
Definition: frame_buffer.h:67
void set_bind_target(FrameBufferBindTarget target)
Set the bind target of the framebuffer to either drawn to or read from.
Interface to drawing graphics.
Definition: graphic_context.h:258
FrameBuffer()
Constructs a null instance.
@ subtype_cube_map_positive_y
Definition: frame_buffer.h:58
FrameBufferBindTarget
Framebuffer bind target.
Definition: frame_buffer.h:66
float get_pixel_ratio() const
FrameBufferBindTarget get_bind_target() const
Get the bind target of the framebuffer.
void detach_depth_stencil()
Interface for implementing a FrameBuffer target.
Definition: frame_buffer_provider.h:46
2D texture array object class.
Definition: texture_2d_array.h:44
void attach_stencil(const RenderBuffer &render_buffer)
Frame-buffer object class.
Definition: frame_buffer.h:73
@ subtype_cube_map_negative_z
Definition: frame_buffer.h:61
void attach_depth(const Texture2D &texture, int level=0)
void attach_depth(const RenderBuffer &render_buffer)
TextureSubtype
Texture Subtype.
Definition: frame_buffer.h:55
1D texture object class.
Definition: texture_1d.h:42
void attach_depth_stencil(const RenderBuffer &render_buffer)
void attach_stencil(const TextureCube &texture, TextureSubtype subtype, int level=0)
bool operator==(const FrameBuffer &other) const
Equality operator.
void attach_color(int attachment_index, const TextureCube &texture, TextureSubtype subtype, int level=0)
Attach color buffer.
void attach_color(int attachment_index, const Texture1DArray &texture, int array_index=-1, int level=0)
Attach color buffer.
2D (width,height) size structure - Integer
Definition: size.h:157
3D texture object class.
Definition: texture_3d.h:42
void throw_if_null() const
Throw an exception if this object is invalid.
void attach_depth_stencil(const TextureCube &texture, TextureSubtype subtype, int level=0)
FrameBufferProvider * get_provider() const
Get Provider.
Size get_size() const
Get the minumum size of all the frame buffer attachments.
Render-buffer object class.
Definition: render_buffer.h:48