Google

class osg::Statistics

Statistics base class.

Inheritance:


Public Fields

[more]int numDrawables
[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] Statistics()
[more]void reset()
[more]void setType(statsType t)
[more]virtual void setVertexArray(unsigned int count, const Vec3*)
[more]virtual void drawArrays(GLenum mode, GLint, GLsizei count)
[more]virtual void drawElements(GLenum mode, GLsizei count, const 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 addDrawable()
[more]void addMatrix()
[more]void addLight(int np)
[more]void addImpostor(int np)
[more]inline int getBins()
[more]void setDepth(int d)
[more]void addBins(int np)
[more]void setBinNo(int n)

Public Members

[more]typedef std::pair<unsigned int,unsigned int> PrimitivePair
[more]typedef std::map<GLenum,PrimitivePair> PrimtiveValueMap
[more]enum statsType


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::pair<unsigned int,unsigned int> PrimitivePair

otypedef std::map<GLenum,PrimitivePair> PrimtiveValueMap

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, const Vec3*)

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

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

ovirtual void begin(GLenum mode)

ovirtual void vertex(const Vec3&)

ovirtual void vertex(float, float, float)

ovirtual void end()

ovoid addDrawable()

ovoid addMatrix()

ovoid addLight(int np)

ovoid addImpostor(int np)

oinline int getBins()

ovoid setDepth(int d)

ovoid addBins(int np)

ovoid setBinNo(int n)

oint numDrawables

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++.