Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

glt/countsrf.cpp File Reference

#include "countsrf.h"
#include <glt/rgb.h>
#include <glt/zplane.h>
#include <glt/error.h>
#include <node/shape.h>

Include dependency graph for countsrf.cpp:

Include dependency graph

Go to the source code of this file.

Functions

void countSurfaces (const GltShape &shape)
 Use the stencil buffer to count the number of surfaces drawn at each pixel.

GLubyte countSurfaces (const GltShape &shape, const countSurfacesMode mode)
 Use the stencil buffer to count the number of surfaces drawn at each pixel.

GLubyte countSurfacesVisualise (const GltShape &shape)
 Visualise the number of rendered surfaces at each pixel.

GLuint stencilHistogram (GLuint histogram[256])
 Extract a stencil buffer histogram for the current viewport.


Variables

const GLuint maxColors = 8
 Number of colors used for stencil buffer color coding.

const GltColor surfaceColor [maxColors]
 Colors used for stencil buffer color coding.


Detailed Description

Id:
countsrf.cpp,v 1.9 2002/10/09 15:09:38 nigels Exp

Log:
countsrf.cpp,v
Revision 1.9 2002/10/09 15:09:38 nigels Added RCS Id and Log tags

Definition in file countsrf.cpp.


Variable Documentation

const GltColor surfaceColor[maxColors]
 

Initial value:

{
    red,
    green,
    blue,
    yellow,
    cyan,
    magenta,
    black,
    white
}
Colors used for stencil buffer color coding.

Definition at line 126 of file countsrf.cpp.


Generated on Tue Nov 5 11:11:09 2002 for GLT by doxygen1.2.18