Main Page   Class Hierarchy   Compound List   Header Files   Compound Members  

ddgFrameBuffer Class Reference

A convenience object to store a 2D image. More...

#include <ddgfbuf.h>

Class diagram for ddgFrameBuffer:

ddgImage

List of all members.


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...


Detailed Description

A convenience object to store a 2D image.

Images can be read from .rgb and TGA files. An image can store an arbitrary 2D set of data.


Member Function Documentation

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.


The documentation for this class was generated from the following file:
Generated at Sun Sep 17 19:27:53 2000 for Digital Dawn Graphics Toolkit by doxygen 0.49-991205 written by Dimitri van Heesch, © 1997-1999