#include <ddgfbuf.h>
Class diagram for ddgFrameBuffer:
Public Members | |||
ddgFrameBuffer ( unsigned short ch = 4) | |||
Create an image but don't allocate memory. More... | |||
ddgFrameBuffer ( unsigned short r, unsigned short c, unsigned short ch = 4) | |||
Create an image and allocate memory. | |||
bool | readZBuffer ( ddgCamera *c ) | ||
Copy the Z-buffer from the screen into the image. More... | |||
bool | readFrameBuffer ( ddgCamera *c ) | ||
Copy the Frame-buffer from the screen into the image. More... | |||
bool | readAlphaBuffer ( ddgCamera *c ) | ||
Copy the Alpha-buffer from the screen into the image. More... |
Images can be read from .rgb and TGA files. An image can store an arbitrary 2D set of data.
ddgFrameBuffer::ddgFrameBuffer (unsigned short ch = 4) |
Create an image but don't allocate memory.
ch is the number of channels (1-4). The t flag is true if this is an OpenGL texture which needs to be a power of 2.
bool ddgFrameBuffer::readZBuffer (ddgCamera * c) |
Copy the Z-buffer from the screen into the image.
Allocates image to match screen size.
bool ddgFrameBuffer::readFrameBuffer (ddgCamera * c) |
Copy the Frame-buffer from the screen into the image.
Allocates image to match screen size.
bool ddgFrameBuffer::readAlphaBuffer (ddgCamera * c) |
Copy the Alpha-buffer from the screen into the image.
Allocates image to match screen size.