#include <FrameBuffer.h>
Inheritance diagram for FrameBuffer:
Public Member Functions | |
FrameBuffer (unsigned mode) | |
FrameBuffer (unsigned width, unsigned height, unsigned mode) | |
virtual | ~FrameBuffer () |
virtual void | showContent () |
virtual unsigned | getWidth () const |
virtual unsigned | getHeight () const |
virtual void | setWidth (unsigned w) |
virtual void | setHeight (unsigned h) |
virtual void | setColor (const Camera &, unsigned, unsigned, float, const Color3f &) |
virtual void | setColor (const Camera &, unsigned, unsigned, const Color3f &) |
virtual void | setColors (const Camera &, unsigned, unsigned, float, const Color3f[], unsigned) |
virtual void | setColors (const Camera &, unsigned, unsigned, const Color3f[], unsigned) |
virtual Color3f | getColor (unsigned, unsigned) const |
virtual void | clearColor (const Color3f &) |
Static Public Attributes | |
static const unsigned | FB_RGBA = (1 << 0) |
static const unsigned | FB_INDEX = (1 << 1) |
static const unsigned | FB_SINGLE = (1 << 2) |
static const unsigned | FB_DOUBLE = (1 << 3) |
static const unsigned | FB_DEPTH = (1 << 4) |
Protected Member Functions | |
void | _sanitizeMode () |
Protected Attributes | |
unsigned | _width |
unsigned | _height |
unsigned | _fbMode |
Definition at line 18 of file FrameBuffer.h.
|
Constructor = frame-buffer mode Definition at line 48 of file FrameBuffer.h. |
|
Constructor = width in pixels = height in pixels = frame-buffer mode Definition at line 60 of file FrameBuffer.h. |
|
Destructor Definition at line 69 of file FrameBuffer.h. |
|
Definition at line 32 of file FrameBuffer.h. |
|
Sets all pixels to given color = new color Reimplemented in FrameBufferGL, and FrameBufferGLX. Definition at line 149 of file FrameBuffer.h. Referenced by GLIrradCacheRender::_render(). |
|
Returns the pixel's color = pixel x position, 0 = left = pixel y position, 0 = bottom = color of the pixel Reimplemented in FrameBufferGL, and FrameBufferGLX. Definition at line 138 of file FrameBuffer.h. |
|
Definition at line 81 of file FrameBuffer.h. Referenced by RTRender::_render(). |
|
Manipulation with frame-buffer's width and height (in pixels) Definition at line 80 of file FrameBuffer.h. Referenced by RTRender::_render(). |
|
Reimplemented in FrameBufferGL, and FrameBufferGLX. Definition at line 100 of file FrameBuffer.h. |
|
Sets the pixel's color = camera that made the snapshot = pixel x position, 0 = left = pixel y position, 0 = bottom = "depth" of pixel = new color of the pixel Reimplemented in FrameBufferGL, and FrameBufferGLX. Definition at line 94 of file FrameBuffer.h. Referenced by RTRender::_render(). |
|
Reimplemented in FrameBufferGL, and FrameBufferGLX. Definition at line 125 of file FrameBuffer.h. |
|
Sets color of many pixels. Setting color pixel by pixel is usually too slow. We can therefore write more pixels together. Pixels are written by lines starting at given pixel. = camera that made the snapshot = position x of the first pixel, 0 = left = position y of the first pixel, 0 = bottom = "depth" of pixel = array of new pixel colors = number of pixels Reimplemented in FrameBufferGL, and FrameBufferGLX. Definition at line 118 of file FrameBuffer.h. |
|
Reimplemented in FrameBufferGL, and FrameBufferGLX. Definition at line 83 of file FrameBuffer.h. Referenced by FrameBufferGL::setHeight(). |
|
Reimplemented in FrameBufferGL, and FrameBufferGLX. Definition at line 82 of file FrameBuffer.h. Referenced by FrameBufferGL::setWidth(). |
|
Force to show the frame-buffer content on the screen. This method should be called after setColor() and setColors(). Reimplemented in FrameBufferGL, FrameBufferGLUT, and FrameBufferGLX. Definition at line 75 of file FrameBuffer.h. |
|
Definition at line 22 of file FrameBuffer.h. Referenced by FrameBufferGLX::_init(), FrameBufferGLX::clearColor(), FrameBufferGLUT::FrameBufferGLUT(), FrameBufferGLX::showContent(), and FrameBufferGLUT::showContent(). |
|
Definition at line 21 of file FrameBuffer.h. Referenced by FrameBufferGLX::_init(), FrameBufferGLX::getColor(), FrameBufferGLX::setColor(), FrameBufferGL::setColor(), FrameBufferGLX::setHeight(), and FrameBufferGLX::setWidth(). |
|
Definition at line 20 of file FrameBuffer.h. Referenced by FrameBufferGLX::_init(), FrameBufferGL::setColor(), FrameBufferGLX::setColors(), FrameBufferGLX::setHeight(), and FrameBufferGLX::setWidth(). |
|
Definition at line 29 of file FrameBuffer.h. Referenced by FrameBufferGLX::_init(), and FrameBufferGLUT::FrameBufferGLUT(). |
|
Definition at line 28 of file FrameBuffer.h. Referenced by FrameBufferGLX::_init(), FrameBufferGLX::clearColor(), FrameBufferGLUT::FrameBufferGLUT(), FrameBufferGLX::showContent(), and FrameBufferGLUT::showContent(). |
|
Definition at line 26 of file FrameBuffer.h. Referenced by FrameBufferGLUT::FrameBufferGLUT(). |
|
Definition at line 25 of file FrameBuffer.h. Referenced by FrameBufferGLX::_init(), and FrameBufferGLUT::FrameBufferGLUT(). |
|
Definition at line 27 of file FrameBuffer.h. Referenced by FrameBufferGLUT::FrameBufferGLUT(). |