Blender V4.3
blender::draw::Framebuffer Class Reference

#include <DRW_gpu_wrapper.hh>

Inherits blender::NonCopyable.

Public Member Functions

 Framebuffer ()
 
 Framebuffer (const char *name)
 
 ~Framebuffer ()
 
void ensure (GPUAttachment depth=GPU_ATTACHMENT_NONE, GPUAttachment color1=GPU_ATTACHMENT_NONE, GPUAttachment color2=GPU_ATTACHMENT_NONE, GPUAttachment color3=GPU_ATTACHMENT_NONE, GPUAttachment color4=GPU_ATTACHMENT_NONE, GPUAttachment color5=GPU_ATTACHMENT_NONE, GPUAttachment color6=GPU_ATTACHMENT_NONE, GPUAttachment color7=GPU_ATTACHMENT_NONE, GPUAttachment color8=GPU_ATTACHMENT_NONE)
 
void ensure (int2 target_size)
 
void bind ()
 
void clear_depth (float depth)
 
Framebufferoperator= (Framebuffer &&a)
 
 operator GPUFrameBuffer * () const
 
GPUFrameBuffer ** operator& ()
 

Static Public Member Functions

static void swap (Framebuffer &a, Framebuffer &b)
 

Detailed Description

Definition at line 1196 of file DRW_gpu_wrapper.hh.

Constructor & Destructor Documentation

◆ Framebuffer() [1/2]

blender::draw::Framebuffer::Framebuffer ( )
inline

Definition at line 1202 of file DRW_gpu_wrapper.hh.

◆ Framebuffer() [2/2]

blender::draw::Framebuffer::Framebuffer ( const char * name)
inline

Definition at line 1203 of file DRW_gpu_wrapper.hh.

◆ ~Framebuffer()

blender::draw::Framebuffer::~Framebuffer ( )
inline

Definition at line 1205 of file DRW_gpu_wrapper.hh.

References GPU_FRAMEBUFFER_FREE_SAFE.

Member Function Documentation

◆ bind()

◆ clear_depth()

void blender::draw::Framebuffer::clear_depth ( float depth)
inline

Definition at line 1244 of file DRW_gpu_wrapper.hh.

References GPU_framebuffer_clear_depth().

◆ ensure() [1/2]

◆ ensure() [2/2]

void blender::draw::Framebuffer::ensure ( int2 target_size)
inline

Empty frame-buffer configuration.

Definition at line 1231 of file DRW_gpu_wrapper.hh.

References GPU_framebuffer_create(), GPU_framebuffer_default_size(), and UNPACK2.

◆ operator GPUFrameBuffer *()

blender::draw::Framebuffer::operator GPUFrameBuffer * ( ) const
inline

Definition at line 1259 of file DRW_gpu_wrapper.hh.

◆ operator&()

GPUFrameBuffer ** blender::draw::Framebuffer::operator& ( )
inline

Definition at line 1264 of file DRW_gpu_wrapper.hh.

◆ operator=()

Framebuffer & blender::draw::Framebuffer::operator= ( Framebuffer && a)
inline

Definition at line 1249 of file DRW_gpu_wrapper.hh.

◆ swap()

static void blender::draw::Framebuffer::swap ( Framebuffer & a,
Framebuffer & b )
inlinestatic

Swap the content of the two framebuffer.

Definition at line 1272 of file DRW_gpu_wrapper.hh.

References b.


The documentation for this class was generated from the following file: