|
Blender
V2.93
|
#include <buffers.h>
Public Member Functions | |
| DisplayBuffer (Device *device, bool linear=false) | |
| ~DisplayBuffer () | |
| void | reset (BufferParams ¶ms) |
| void | draw_set (int width, int height) |
| void | draw (Device *device, const DeviceDrawParams &draw_params) |
| bool | draw_ready () |
Public Attributes | |
| BufferParams | params |
| int | draw_width |
| int | draw_height |
| bool | transparent |
| bool | half_float |
| device_pixels< uchar4 > | rgba_byte |
| device_pixels< half4 > | rgba_half |
| DisplayBuffer::DisplayBuffer | ( | Device * | device, |
| bool | linear = false |
||
| ) |
Definition at line 508 of file buffers.cpp.
| DisplayBuffer::~DisplayBuffer | ( | ) |
Definition at line 518 of file buffers.cpp.
References device_vector< T >::free(), rgba_byte, and rgba_half.
| void DisplayBuffer::draw | ( | Device * | device, |
| const DeviceDrawParams & | draw_params | ||
| ) |
Definition at line 548 of file buffers.cpp.
References draw_height, Device::draw_pixels(), draw_width, BufferParams::full_height, BufferParams::full_width, BufferParams::full_x, BufferParams::full_y, half_float, BufferParams::height, params, rgba_byte, rgba_half, transparent, and BufferParams::width.
Referenced by Session::draw_cpu(), and Session::draw_gpu().
| bool DisplayBuffer::draw_ready | ( | ) |
Definition at line 568 of file buffers.cpp.
References draw_height, and draw_width.
Referenced by Session::draw_cpu().
| void DisplayBuffer::draw_set | ( | int | width, |
| int | height | ||
| ) |
Definition at line 540 of file buffers.cpp.
References draw_height, draw_width, BufferParams::height, height, params, BufferParams::width, and width.
Referenced by Session::copy_to_display_buffer().
| void DisplayBuffer::reset | ( | BufferParams & | params | ) |
Definition at line 524 of file buffers.cpp.
References device_pixels< T >::alloc_to_device(), draw_height, draw_width, half_float, BufferParams::height, params, rgba_byte, rgba_half, and BufferParams::width.
Referenced by Session::reset_(), and Session::~Session().
| int DisplayBuffer::draw_height |
Definition at line 110 of file buffers.h.
Referenced by draw(), draw_ready(), draw_set(), reset(), and Session::~Session().
| int DisplayBuffer::draw_width |
Definition at line 110 of file buffers.h.
Referenced by draw(), draw_ready(), draw_set(), reset(), and Session::~Session().
| bool DisplayBuffer::half_float |
| BufferParams DisplayBuffer::params |
Definition at line 106 of file buffers.h.
Referenced by draw(), Session::draw_cpu(), Session::draw_gpu(), draw_set(), and reset().
| device_pixels<uchar4> DisplayBuffer::rgba_byte |
Definition at line 116 of file buffers.h.
Referenced by Session::copy_to_display_buffer(), draw(), reset(), ~DisplayBuffer(), and Session::~Session().
| device_pixels<half4> DisplayBuffer::rgba_half |
Definition at line 117 of file buffers.h.
Referenced by Session::copy_to_display_buffer(), draw(), reset(), and ~DisplayBuffer().