#include <framebuffer.h>
Public Member Functions | |
| FrameBuffer (const unsigned int w, const unsigned int h) | |
| ~FrameBuffer () | |
| void | Clear () |
| Pixel * | GetPixels () const |
| void | SetPixel (const unsigned int x, const unsigned int y, const Spectrum &r) |
| void | SetPixel (const unsigned int index, const Spectrum &r) |
| Pixel * | GetPixel (const unsigned int x, const unsigned int y) const |
| Pixel * | GetPixel (const unsigned int index) const |
| unsigned int | GetWidth () const |
| unsigned int | GetHeight () const |
Private Attributes | |
| const unsigned int | width |
| const unsigned int | height |
| Pixel * | pixels |
Definition at line 122 of file framebuffer.h.
| luxrays::FrameBuffer::FrameBuffer | ( | const unsigned int | w, | |
| const unsigned int | h | |||
| ) | [inline] |
| luxrays::FrameBuffer::~FrameBuffer | ( | ) | [inline] |
Definition at line 130 of file framebuffer.h.
References pixels.
| void luxrays::FrameBuffer::Clear | ( | ) | [inline] |
Definition at line 134 of file framebuffer.h.
References luxrays::Spectrum::b, luxrays::Spectrum::g, height, pixels, luxrays::Spectrum::r, and width.
Referenced by luxrays::NativePixelDevice::ClearFrameBuffer(), FrameBuffer(), and luxrays::NativePixelDevice::Init().
| unsigned int luxrays::FrameBuffer::GetHeight | ( | ) | const [inline] |
Definition at line 177 of file framebuffer.h.
References height.
| Pixel* luxrays::FrameBuffer::GetPixel | ( | const unsigned int | index | ) | const [inline] |
Definition at line 169 of file framebuffer.h.
| Pixel* luxrays::FrameBuffer::GetPixel | ( | const unsigned int | x, | |
| const unsigned int | y | |||
| ) | const [inline] |
Definition at line 160 of file framebuffer.h.
| Pixel* luxrays::FrameBuffer::GetPixels | ( | ) | const [inline] |
Definition at line 142 of file framebuffer.h.
References pixels.
Referenced by luxrays::utils::LuxRaysFilm::GetScreenBuffer(), luxrays::OpenCLPixelDevice::UpdateFrameBuffer(), and luxrays::NativePixelDevice::UpdateFrameBuffer().
| unsigned int luxrays::FrameBuffer::GetWidth | ( | ) | const [inline] |
Definition at line 176 of file framebuffer.h.
References width.
| void luxrays::FrameBuffer::SetPixel | ( | const unsigned int | index, | |
| const Spectrum & | r | |||
| ) | [inline] |
Definition at line 153 of file framebuffer.h.
| void luxrays::FrameBuffer::SetPixel | ( | const unsigned int | x, | |
| const unsigned int | y, | |||
| const Spectrum & | r | |||
| ) | [inline] |
Definition at line 144 of file framebuffer.h.
const unsigned int luxrays::FrameBuffer::height [private] |
Definition at line 180 of file framebuffer.h.
Referenced by Clear(), FrameBuffer(), GetHeight(), GetPixel(), and SetPixel().
Pixel* luxrays::FrameBuffer::pixels [private] |
Definition at line 182 of file framebuffer.h.
Referenced by Clear(), FrameBuffer(), GetPixel(), GetPixels(), SetPixel(), and ~FrameBuffer().
const unsigned int luxrays::FrameBuffer::width [private] |
Definition at line 180 of file framebuffer.h.
Referenced by Clear(), FrameBuffer(), GetPixel(), GetWidth(), and SetPixel().
1.6.3