class osg::Statistics

Statistics base class.

Inheritance:


Public Fields

[more]int numOpaque
[more]int nummat
[more]int nbins
[more]int nlights
[more]int depth
[more]int _binNo
[more]statsType stattype
[more]int nimpostor
[more]unsigned int _vertexCount
[more]PrimtiveValueMap _primitiveCount
[more]GLenum _currentPrimtiveFunctorMode

Public Methods

[more]typedef std::map<GLenum,PrimitivePair> PrimtiveValueMap Statistics()
[more] ~Statistics()
[more]void reset()
[more]void setType(statsType t)
[more]virtual void setVertexArray(unsigned int count, Vec3*)
[more]virtual void drawArrays(GLenum mode, GLint, GLsizei count)
[more]virtual void drawElements(GLenum mode, GLsizei count, GLubyte*)
[more]virtual void drawElements(GLenum mode, GLsizei count, GLushort*)
[more]virtual void drawElements(GLenum mode, GLsizei count, GLuint*)
[more]virtual void begin(GLenum mode)
[more]virtual void vertex(const Vec3&)
[more]virtual void vertex(float, float, float)
[more]virtual void end()
[more]void addOpaque()
[more]void addMatrix()
[more]void addLight(const int np)
[more]void addImpostor(const int np)
[more]inline const int getBins()
[more]void setDepth(const int d)
[more]void addBins(const int np)
[more]void setBinNo(const int n)

Public Members

[more]enum statsType


Inherited from Referenced:

Public Methods

oinline Referenced& operator = (Referenced&)
oinline void ref() const
oinline void unref() const
oinline void unref_nodelete() const
oinline const int referenceCount() const

Protected Fields

omutable int _refCount


Inherited from PrimitiveFunctor:


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.
otypedef std::map<GLenum,PrimitivePair> PrimtiveValueMap Statistics()

o ~Statistics()

oenum statsType

o STAT_NONE

o STAT_FRAMERATE

o STAT_GRAPHS

o STAT_PRIMS

o STAT_PRIMSPERVIEW

o STAT_PRIMSPERBIN

o STAT_DC

o STAT_RESTART

ovoid reset()

ovoid setType(statsType t)

ovirtual void setVertexArray(unsigned int count, Vec3*)

ovirtual void drawArrays(GLenum mode, GLint, GLsizei count)

ovirtual void drawElements(GLenum mode, GLsizei count, GLubyte*)

ovirtual void drawElements(GLenum mode, GLsizei count, GLushort*)

ovirtual void drawElements(GLenum mode, GLsizei count, GLuint*)

ovirtual void begin(GLenum mode)

ovirtual void vertex(const Vec3&)

ovirtual void vertex(float, float, float)

ovirtual void end()

ovoid addOpaque()

ovoid addMatrix()

ovoid addLight(const int np)

ovoid addImpostor(const int np)

oinline const int getBins()

ovoid setDepth(const int d)

ovoid addBins(const int np)

ovoid setBinNo(const int n)

oint numOpaque

oint nummat

oint nbins

oint nlights

oint depth

oint _binNo

ostatsType stattype

oint nimpostor

ounsigned int _vertexCount

oPrimtiveValueMap _primitiveCount

oGLenum _currentPrimtiveFunctorMode


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.