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

glt/countsrf.h File Reference

Surface Counting Interface. More...

#include <glt/config.h>
#include <glt/gl.h>

Include dependency graph for countsrf.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Enumerations

enum  countSurfacesMode { COUNT_SURFACES_ALL, COUNT_SURFACES_99TH_PERCENTILE }

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.


Detailed Description

Surface Counting Interface.

Id:
countsrf.h,v 1.7 2002/10/07 16:27:46 nigels Exp

Log:
countsrf.h,v
Revision 1.7 2002/10/07 16:27:46 nigels Added CVS version control info

Definition in file countsrf.h.


Enumeration Type Documentation

enum countSurfacesMode
 

Enumeration values:
COUNT_SURFACES_ALL  Count the maximum number of surfaces exactly.
COUNT_SURFACES_99TH_PERCENTILE  Take the maximum of the 99th percentile, ignoring outliers.

Definition at line 44 of file countsrf.h.

Referenced by countSurfaces().


Function Documentation

void countSurfaces const GltShape   shape
 

Use the stencil buffer to count the number of surfaces drawn at each pixel.

Parameters:
shape  Shapes
Warning:
Uses the current culling configuration

Definition at line 28 of file countsrf.cpp.

References GltShape::draw(), and GLERROR.

GLubyte countSurfaces const GltShape   shape,
const countSurfacesMode    mode
 

Use the stencil buffer to count the number of surfaces drawn at each pixel.

Parameters:
shape  Shapes
mode  Count Mode
Returns:
Maximum number of surfaces covering a pixel
Warning:
Uses the current culling configuration

Definition at line 65 of file countsrf.cpp.

References COUNT_SURFACES_99TH_PERCENTILE, COUNT_SURFACES_ALL, countSurfacesMode, GLERROR, and stencilHistogram().

Referenced by countSurfacesVisualise().

GLubyte countSurfacesVisualise const GltShape   shape
 

Visualise the number of rendered surfaces at each pixel.

Parameters:
shape  Shapes
Returns:
Maximum number of surfaces covering a pixel
Warning:
Uses the current culling configuration

Definition at line 139 of file countsrf.cpp.

References COUNT_SURFACES_ALL, countSurfaces(), drawZnear(), GltColor::glColor(), and maxColors.

GLuint stencilHistogram GLuint    histogram[256]
 

Extract a stencil buffer histogram for the current viewport.

Parameters:
histogram  Array of GLuint histogram entries
Returns:
Number of pixels in the current viewport

Definition at line 181 of file countsrf.cpp.

Referenced by countSurfaces().


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