Statistics base class.
Inheritance:
Public Fields
-
int numOpaque
-
int nummat
-
int nbins
-
int nlights
-
int depth
-
int _binNo
-
statsType stattype
-
int nimpostor
-
unsigned int _vertexCount
-
PrimtiveValueMap _primitiveCount
-
GLenum _currentPrimtiveFunctorMode
Public Methods
-
typedef std::map<GLenum,PrimitivePair> PrimtiveValueMap Statistics()
-
~Statistics()
-
void reset()
-
void setType(statsType t)
-
virtual void setVertexArray(unsigned int count, Vec3*)
-
virtual void drawArrays(GLenum mode, GLint, GLsizei count)
-
virtual void drawElements(GLenum mode, GLsizei count, GLubyte*)
-
virtual void drawElements(GLenum mode, GLsizei count, GLushort*)
-
virtual void drawElements(GLenum mode, GLsizei count, GLuint*)
-
virtual void begin(GLenum mode)
-
virtual void vertex(const Vec3&)
-
virtual void vertex(float, float, float)
-
virtual void end()
-
void addOpaque()
-
void addMatrix()
-
void addLight(const int np)
-
void addImpostor(const int np)
-
inline const int getBins()
-
void setDepth(const int d)
-
void addBins(const int np)
-
void setBinNo(const int n)
Public Members
-
enum statsType
Public Methods
-
inline Referenced& operator = (Referenced&)
-
inline void ref() const
-
inline void unref() const
-
inline void unref_nodelete() const
-
inline const int referenceCount() const
Protected Fields
-
mutable int _refCount
Documentation
Statistics base class. Used to extract primitive information from
the renderBin(s). Add a case of getStats(osgUtil::Statistics *stat)
for any new drawable (or drawable derived class) that you generate
(eg see Geometry.cpp). There are 20 types of drawable counted - actually only
14 cases can occur in reality. these represent sets of GL_POINTS, GL_LINES
GL_LINESTRIPS, LOOPS, TRIANGLES, TRI-fans, tristrips, quads, quadstrips etc
The number of triangles rendered is inferred:
each triangle = 1 triangle (number of vertices/3)
each quad = 2 triangles (nverts/2)
each trifan or tristrip = (length-2) triangles and so on.
typedef std::map<GLenum,PrimitivePair> PrimtiveValueMap Statistics()
~Statistics()
enum statsType
STAT_NONE
STAT_FRAMERATE
STAT_GRAPHS
STAT_PRIMS
STAT_PRIMSPERVIEW
STAT_PRIMSPERBIN
STAT_DC
STAT_RESTART
void reset()
void setType(statsType t)
virtual void setVertexArray(unsigned int count, Vec3*)
virtual void drawArrays(GLenum mode, GLint, GLsizei count)
virtual void drawElements(GLenum mode, GLsizei count, GLubyte*)
virtual void drawElements(GLenum mode, GLsizei count, GLushort*)
virtual void drawElements(GLenum mode, GLsizei count, GLuint*)
virtual void begin(GLenum mode)
virtual void vertex(const Vec3&)
virtual void vertex(float, float, float)
virtual void end()
void addOpaque()
void addMatrix()
void addLight(const int np)
void addImpostor(const int np)
inline const int getBins()
void setDepth(const int d)
void addBins(const int np)
void setBinNo(const int n)
int numOpaque
int nummat
int nbins
int nlights
int depth
int _binNo
statsType stattype
int nimpostor
unsigned int _vertexCount
PrimtiveValueMap _primitiveCount
GLenum _currentPrimtiveFunctorMode
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.