source: GTP/trunk/Lib/Geom/shared/GTGeometry/src/libs/vmi/include/histogram.h @ 983

Revision 983, 896 bytes checked in by gumbau, 18 years ago (diff)
Line 
1#ifndef __histogram_h_
2#define __histogram_h_
3
4#include "GL/glut.h"
5
6#include "color.h"
7
8#define HISTOGRAM_SIZE  256 // Must be a power of 2
9
10namespace       VMI
11{
12
13extern void getSubHistogram(GLuint subHistoGram[][4]);
14extern void copySubHistogram(Color *colors, GLuint *histogram, GLuint begin, GLuint end, GLuint subHistoGram[][4]);
15extern void printHistogram(GLuint histoGram[][4]);
16extern void plotHistogram(GLuint histoGram[][4]);
17
18extern GLuint **initHistogram(GLuint numTriangles, GLuint numCameras);
19extern void deleteHistogram(GLuint **histogram, GLuint numCameras);
20extern void printFullHistogram(GLuint **histogram, GLuint numCameras, GLuint numTriangles);
21extern void getSWHistogram(GLuint *histogram, GLubyte *pixels);
22extern void getSWHistoByOcclusionQuery(Mesh *mesh, Color *colors, GLuint *histogram);
23
24extern void resetSWHistogram(GLuint *histogram, GLuint numTriangles);
25
26}
27
28#endif
Note: See TracBrowser for help on using the repository browser.