Statistics base class.
Inheritance:
Public Fields
-
int numDrawables
-
int nummat
-
int nbins
-
int nlights
-
int depth
-
int _binNo
-
statsType stattype
-
int nimpostor
-
unsigned int _vertexCount
-
PrimtiveValueMap _primitiveCount
-
GLenum _currentPrimtiveFunctorMode
Public Methods
-
Statistics()
-
~Statistics()
-
void reset()
-
void setType(statsType t)
-
virtual void setVertexArray(unsigned int count, const Vec3*)
-
virtual void drawArrays(GLenum mode, GLint, GLsizei count)
-
virtual void drawElements(GLenum mode, GLsizei count, const GLuint*)
-
virtual void begin(GLenum mode)
-
virtual void vertex(const Vec3&)
-
virtual void vertex(float, float, float)
-
virtual void end()
-
void addDrawable()
-
void addMatrix()
-
void addLight(int np)
-
void addImpostor(int np)
-
inline int getBins()
-
void setDepth(int d)
-
void addBins(int np)
-
void setBinNo(int n)
Public Members
-
typedef std::pair<unsigned int,unsigned int> PrimitivePair
-
typedef std::map<GLenum,PrimitivePair> PrimtiveValueMap
-
enum statsType
Public Methods
-
inline Referenced& operator = (Referenced&)
-
inline void ref() const
-
inline void unref() const
-
inline void unref_nodelete() const
-
inline int referenceCount() const
-
inline static int createdCount()
-
inline static int deletedCount()
Protected Fields
-
mutable int _refCount
-
static int _createdCount
-
static int _deletedCount
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::pair<unsigned int,unsigned int> PrimitivePair
- 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, const Vec3*)
- virtual void drawArrays(GLenum mode, GLint, GLsizei count)
- virtual void drawElements(GLenum mode, GLsizei count, const GLuint*)
- virtual void begin(GLenum mode)
- virtual void vertex(const Vec3&)
- virtual void vertex(float, float, float)
- virtual void end()
- void addDrawable()
- void addMatrix()
- void addLight(int np)
- void addImpostor(int np)
- inline int getBins()
- void setDepth(int d)
- void addBins(int np)
- void setBinNo(int n)
- int numDrawables
- 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++.