Blender V2.61 - r43446
|
#include <buffers.h>
Public Member Functions | |
DisplayBuffer (Device *device) | |
~DisplayBuffer () | |
void | reset (Device *device, BufferParams ¶ms) |
void | write (Device *device, const string &filename) |
void | draw_set (int width, int height) |
void | draw (Device *device) |
bool | draw_ready () |
Public Attributes | |
BufferParams | params |
int | draw_width |
int | draw_height |
bool | transparent |
device_vector< uchar4 > | rgba |
thread_mutex | mutex |
Protected Member Functions | |
void | draw_transparency_grid () |
void | device_free () |
Protected Attributes | |
Device * | device |
DisplayBuffer::DisplayBuffer | ( | Device * | device | ) |
Definition at line 114 of file buffers.cpp.
References device, draw_height, draw_width, and transparent.
DisplayBuffer::~DisplayBuffer | ( | ) |
Definition at line 122 of file buffers.cpp.
References device_free().
void DisplayBuffer::device_free | ( | ) | [protected] |
Definition at line 127 of file buffers.cpp.
References device_vector< T >::clear(), device, device_memory::device_pointer, Device::pixels_free(), and rgba.
Referenced by reset(), and ~DisplayBuffer().
void DisplayBuffer::draw | ( | Device * | device | ) |
Definition at line 180 of file buffers.cpp.
References draw_height, Device::draw_pixels(), draw_transparency_grid(), draw_width, BufferParams::height, params, rgba, transparent, and BufferParams::width.
Referenced by Session::draw_cpu(), and Session::draw_gpu().
bool DisplayBuffer::draw_ready | ( | ) |
Definition at line 190 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 150 of file buffers.cpp.
References assert, draw_height, draw_width, BufferParams::height, params, and BufferParams::width.
Referenced by Session::tonemap().
void DisplayBuffer::draw_transparency_grid | ( | ) | [protected] |
Definition at line 158 of file buffers.cpp.
References checker_stipple_sml, BufferParams::height, params, and BufferParams::width.
Referenced by draw().
void DisplayBuffer::reset | ( | Device * | device, |
BufferParams & | params | ||
) |
Definition at line 135 of file buffers.cpp.
References device_free(), draw_height, draw_width, BufferParams::height, params, Device::pixels_alloc(), device_vector< T >::resize(), rgba, and BufferParams::width.
Referenced by Session::reset_().
void DisplayBuffer::write | ( | Device * | device, |
const string & | filename | ||
) |
Definition at line 195 of file buffers.cpp.
References addon::engine::create(), device_memory::data_pointer, draw_height, draw_width, Device::pixels_copy_from(), rgba, spec(), uchar, and simple_enum_gen::w.
Referenced by Session::~Session().
Device* DisplayBuffer::device [protected] |
Definition at line 135 of file buffers.h.
Referenced by device_free(), and DisplayBuffer().
Definition at line 113 of file buffers.h.
Referenced by DisplayBuffer(), draw(), draw_ready(), draw_set(), reset(), and write().
Definition at line 113 of file buffers.h.
Referenced by DisplayBuffer(), draw(), draw_ready(), draw_set(), reset(), and write().
Definition at line 119 of file buffers.h.
Referenced by Session::draw_cpu(), Session::draw_gpu(), Session::reset_gpu(), and Session::run_cpu().
Definition at line 109 of file buffers.h.
Referenced by draw(), Session::draw_cpu(), Session::draw_gpu(), draw_set(), draw_transparency_grid(), and reset().
Definition at line 117 of file buffers.h.
Referenced by device_free(), draw(), reset(), Session::tonemap(), and write().
Definition at line 115 of file buffers.h.
Referenced by DisplayBuffer(), and draw().