#include <FrameBufferGL.h>
Inheritance diagram for FrameBufferGL:
Public Member Functions | |
FrameBufferGL (unsigned mode) | |
FrameBufferGL (unsigned width, unsigned height, unsigned mode) | |
virtual | ~FrameBufferGL () |
virtual void | showContent () |
virtual void | setWidth (unsigned) |
virtual void | setHeight (unsigned) |
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 &) |
virtual unsigned | getWidth () const |
virtual unsigned | getHeight () const |
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 14 of file FrameBufferGL.h.
|
Constructor = frame-buffer mode Definition at line 21 of file FrameBufferGL.h. |
|
Constructor = width in pixels = height in pixels = frame-buffer mode Definition at line 30 of file FrameBufferGL.h. |
|
Destructor Definition at line 36 of file FrameBufferGL.h. |
|
Definition at line 32 of file FrameBuffer.h. |
|
Sets all pixels to given color = new color Reimplemented from FrameBuffer. Definition at line 249 of file FrameBufferGL.cc. |
|
Returns the pixel's color. This method is slow due to manipulation with OpenGL matrices. Use another frame-buffer for this task! = pixel x position, 0 = left = pixel y position, 0 = bottom = color of the pixel Reimplemented from FrameBuffer. Definition at line 239 of file FrameBufferGL.cc. |
|
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 from FrameBuffer. Definition at line 59 of file FrameBufferGL.cc. References FrameBuffer::_height, FrameBuffer::_width, Projection::getBottomPlane(), Projection::getLeftPlane(), Projection::getPlaneHeight(), Projection::getPlaneWidth(), and Camera::getProjection(). |
|
Sets the pixel's color. This method is slow due to manipulation with OpenGL matrices. Use another frame-buffer for this task! = camera that made the snapshot = pixel x position, 0 = left = pixel y position, 0 = bottom = "depth" of pixel = new color of the pixel Reimplemented from FrameBuffer. Definition at line 22 of file FrameBufferGL.cc. References FrameBuffer::_height, FrameBuffer::_width, Projection::getBottomPlane(), Projection::getLeftPlane(), Projection::getPlaneHeight(), Projection::getPlaneWidth(), and Camera::getProjection(). |
|
Reimplemented from FrameBuffer. Definition at line 126 of file FrameBufferGL.cc. |
|
Sets color of many pixels. Setting color pixel by pixel is usually too slow. We can therefore write more pixels at once. 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 from FrameBuffer. Definition at line 115 of file FrameBufferGL.cc. |
|
Reimplemented from FrameBuffer. Definition at line 14 of file FrameBufferGL.cc. References FrameBuffer::setHeight(). |
|
Manipulation with frame-buffer's width and height (in pixels) Reimplemented from FrameBuffer. Definition at line 6 of file FrameBufferGL.cc. References FrameBuffer::setWidth(). |
|
This method should be called after all pixels have been colorized by the setColor() method in order to show the picture on screen Reimplemented from FrameBuffer. Reimplemented in FrameBufferGLUT. Definition at line 42 of file FrameBufferGL.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(). |