Added osgUtil, osgDB, osgFX, osgParticle, osgSim, osgTerrain, osgGA
and osgProducer to osgWrappers directory.
Enabled the build of osgWrappers/osg, osgWrappers/osgPartile and osgWrappers/osgSim,
but not osgUtil, osgDB, osgFX, osgTerrain, osgGA and osgProducer due to compile
errors. I am assuming that these compilers are fixable so I'm checked all the
source code so that members of the community can help fix them.
2005-05-09 18:17:56 +08:00
|
|
|
// ***************************************************************************
|
|
|
|
//
|
|
|
|
// Generated automatically by genwrapper.
|
|
|
|
// Please DO NOT EDIT this file!
|
|
|
|
//
|
|
|
|
// ***************************************************************************
|
|
|
|
|
|
|
|
#include <osgIntrospection/ReflectionMacros>
|
|
|
|
#include <osgIntrospection/TypedMethodInfo>
|
|
|
|
#include <osgIntrospection/Attributes>
|
|
|
|
|
2006-07-19 04:53:16 +08:00
|
|
|
#include <osg/Drawable>
|
2006-07-13 23:56:54 +08:00
|
|
|
#include <osg/Geode>
|
|
|
|
#include <osg/Group>
|
|
|
|
#include <osg/LOD>
|
|
|
|
#include <osg/Switch>
|
|
|
|
#include <osg/Transform>
|
2006-07-19 04:53:16 +08:00
|
|
|
#include <osg/Vec2>
|
|
|
|
#include <osg/Vec3>
|
|
|
|
#include <osg/Vec4>
|
Added osgUtil, osgDB, osgFX, osgParticle, osgSim, osgTerrain, osgGA
and osgProducer to osgWrappers directory.
Enabled the build of osgWrappers/osg, osgWrappers/osgPartile and osgWrappers/osgSim,
but not osgUtil, osgDB, osgFX, osgTerrain, osgGA and osgProducer due to compile
errors. I am assuming that these compilers are fixable so I'm checked all the
source code so that members of the community can help fix them.
2005-05-09 18:17:56 +08:00
|
|
|
#include <osgUtil/Statistics>
|
|
|
|
|
2005-05-16 17:41:10 +08:00
|
|
|
// Must undefine IN and OUT macros defined in Windows headers
|
|
|
|
#ifdef IN
|
|
|
|
#undef IN
|
|
|
|
#endif
|
|
|
|
#ifdef OUT
|
|
|
|
#undef OUT
|
|
|
|
#endif
|
|
|
|
|
Added osgUtil, osgDB, osgFX, osgParticle, osgSim, osgTerrain, osgGA
and osgProducer to osgWrappers directory.
Enabled the build of osgWrappers/osg, osgWrappers/osgPartile and osgWrappers/osgSim,
but not osgUtil, osgDB, osgFX, osgTerrain, osgGA and osgProducer due to compile
errors. I am assuming that these compilers are fixable so I'm checked all the
source code so that members of the community can help fix them.
2005-05-09 18:17:56 +08:00
|
|
|
TYPE_NAME_ALIAS(std::pair< unsigned int COMMA unsigned int >, osgUtil::Statistics::PrimitivePair);
|
|
|
|
|
2005-09-29 21:07:26 +08:00
|
|
|
TYPE_NAME_ALIAS(std::map< GLenum COMMA osgUtil::Statistics::PrimitivePair >, osgUtil::Statistics::PrimitiveValueMap);
|
Added osgUtil, osgDB, osgFX, osgParticle, osgSim, osgTerrain, osgGA
and osgProducer to osgWrappers directory.
Enabled the build of osgWrappers/osg, osgWrappers/osgPartile and osgWrappers/osgSim,
but not osgUtil, osgDB, osgFX, osgTerrain, osgGA and osgProducer due to compile
errors. I am assuming that these compilers are fixable so I'm checked all the
source code so that members of the community can help fix them.
2005-05-09 18:17:56 +08:00
|
|
|
|
2005-09-29 21:07:26 +08:00
|
|
|
TYPE_NAME_ALIAS(std::map< GLenum COMMA unsigned int >, osgUtil::Statistics::PrimitiveCountMap);
|
Added osgUtil, osgDB, osgFX, osgParticle, osgSim, osgTerrain, osgGA
and osgProducer to osgWrappers directory.
Enabled the build of osgWrappers/osg, osgWrappers/osgPartile and osgWrappers/osgSim,
but not osgUtil, osgDB, osgFX, osgTerrain, osgGA and osgProducer due to compile
errors. I am assuming that these compilers are fixable so I'm checked all the
source code so that members of the community can help fix them.
2005-05-09 18:17:56 +08:00
|
|
|
|
2006-07-30 00:47:28 +08:00
|
|
|
BEGIN_ENUM_REFLECTOR(osgUtil::Statistics::StatsType)
|
2005-05-16 17:41:10 +08:00
|
|
|
I_EnumLabel(osgUtil::Statistics::STAT_NONE);
|
|
|
|
I_EnumLabel(osgUtil::Statistics::STAT_FRAMERATE);
|
|
|
|
I_EnumLabel(osgUtil::Statistics::STAT_GRAPHS);
|
|
|
|
I_EnumLabel(osgUtil::Statistics::STAT_PRIMS);
|
|
|
|
I_EnumLabel(osgUtil::Statistics::STAT_PRIMSPERVIEW);
|
|
|
|
I_EnumLabel(osgUtil::Statistics::STAT_PRIMSPERBIN);
|
|
|
|
I_EnumLabel(osgUtil::Statistics::STAT_DC);
|
|
|
|
I_EnumLabel(osgUtil::Statistics::STAT_RESTART);
|
Added osgUtil, osgDB, osgFX, osgParticle, osgSim, osgTerrain, osgGA
and osgProducer to osgWrappers directory.
Enabled the build of osgWrappers/osg, osgWrappers/osgPartile and osgWrappers/osgSim,
but not osgUtil, osgDB, osgFX, osgTerrain, osgGA and osgProducer due to compile
errors. I am assuming that these compilers are fixable so I'm checked all the
source code so that members of the community can help fix them.
2005-05-09 18:17:56 +08:00
|
|
|
END_REFLECTOR
|
|
|
|
|
2005-05-16 17:41:10 +08:00
|
|
|
BEGIN_OBJECT_REFLECTOR(osgUtil::Statistics)
|
|
|
|
I_BaseType(osg::PrimitiveFunctor);
|
|
|
|
I_Constructor0();
|
|
|
|
I_Method0(void, reset);
|
2006-07-30 00:47:28 +08:00
|
|
|
I_Method1(void, setType, IN, osgUtil::Statistics::StatsType, t);
|
2005-05-16 17:41:10 +08:00
|
|
|
I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec3 *, x);
|
|
|
|
I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec2 *, x);
|
|
|
|
I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec4 *, x);
|
|
|
|
I_Method3(void, drawArrays, IN, GLenum, mode, IN, GLint, x, IN, GLsizei, count);
|
|
|
|
I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLubyte *, x);
|
|
|
|
I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLushort *, x);
|
|
|
|
I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLuint *, x);
|
|
|
|
I_Method1(void, begin, IN, GLenum, mode);
|
|
|
|
I_Method0(void, vertex);
|
|
|
|
I_Method3(void, vertex, IN, float, x, IN, float, x, IN, float, x);
|
|
|
|
I_Method1(void, vertex, IN, const osg::Vec3 &, x);
|
|
|
|
I_Method1(void, vertex, IN, const osg::Vec2 &, x);
|
|
|
|
I_Method1(void, vertex, IN, const osg::Vec4 &, x);
|
|
|
|
I_Method2(void, vertex, IN, float, x, IN, float, x);
|
|
|
|
I_Method4(void, vertex, IN, float, x, IN, float, x, IN, float, x, IN, float, x);
|
|
|
|
I_Method0(void, end);
|
|
|
|
I_Method0(void, addDrawable);
|
|
|
|
I_Method0(void, addMatrix);
|
|
|
|
I_Method1(void, addLight, IN, int, np);
|
|
|
|
I_Method1(void, addImpostor, IN, int, np);
|
|
|
|
I_Method0(int, getBins);
|
|
|
|
I_Method1(void, setDepth, IN, int, d);
|
|
|
|
I_Method1(void, addBins, IN, int, np);
|
|
|
|
I_Method1(void, setBinNo, IN, int, n);
|
2006-07-30 00:47:28 +08:00
|
|
|
I_Method1(void, add, IN, const osgUtil::Statistics &, stats);
|
2005-09-29 21:07:26 +08:00
|
|
|
I_Method0(osgUtil::Statistics::PrimitiveCountMap::iterator, GetPrimitivesBegin);
|
|
|
|
I_Method0(osgUtil::Statistics::PrimitiveCountMap::iterator, GetPrimitivesEnd);
|
2005-05-16 17:41:10 +08:00
|
|
|
I_WriteOnlyProperty(int, BinNo);
|
|
|
|
I_ReadOnlyProperty(int, Bins);
|
|
|
|
I_WriteOnlyProperty(int, Depth);
|
2006-07-30 00:47:28 +08:00
|
|
|
I_WriteOnlyProperty(osgUtil::Statistics::StatsType, Type);
|
Added osgUtil, osgDB, osgFX, osgParticle, osgSim, osgTerrain, osgGA
and osgProducer to osgWrappers directory.
Enabled the build of osgWrappers/osg, osgWrappers/osgPartile and osgWrappers/osgSim,
but not osgUtil, osgDB, osgFX, osgTerrain, osgGA and osgProducer due to compile
errors. I am assuming that these compilers are fixable so I'm checked all the
source code so that members of the community can help fix them.
2005-05-09 18:17:56 +08:00
|
|
|
END_REFLECTOR
|
|
|
|
|
2006-07-13 23:56:54 +08:00
|
|
|
TYPE_NAME_ALIAS(std::set< osg::Node * >, osgUtil::StatsVisitor::NodeSet);
|
|
|
|
|
|
|
|
TYPE_NAME_ALIAS(std::set< osg::Drawable * >, osgUtil::StatsVisitor::DrawableSet);
|
|
|
|
|
|
|
|
BEGIN_OBJECT_REFLECTOR(osgUtil::StatsVisitor)
|
|
|
|
I_BaseType(osg::NodeVisitor);
|
|
|
|
I_Constructor0();
|
|
|
|
I_Method0(void, reset);
|
|
|
|
I_Method1(void, apply, IN, osg::Group &, node);
|
|
|
|
I_Method1(void, apply, IN, osg::Transform &, node);
|
|
|
|
I_Method1(void, apply, IN, osg::LOD &, node);
|
|
|
|
I_Method1(void, apply, IN, osg::Switch &, node);
|
|
|
|
I_Method1(void, apply, IN, osg::Geode &, node);
|
|
|
|
I_Method1(void, apply, IN, osg::Drawable &, drawable);
|
|
|
|
I_Method0(void, totalUpStats);
|
|
|
|
I_Method1(void, print, IN, std::ostream &, out);
|
|
|
|
END_REFLECTOR
|
|
|
|
|
Added osgUtil, osgDB, osgFX, osgParticle, osgSim, osgTerrain, osgGA
and osgProducer to osgWrappers directory.
Enabled the build of osgWrappers/osg, osgWrappers/osgPartile and osgWrappers/osgSim,
but not osgUtil, osgDB, osgFX, osgTerrain, osgGA and osgProducer due to compile
errors. I am assuming that these compilers are fixable so I'm checked all the
source code so that members of the community can help fix them.
2005-05-09 18:17:56 +08:00
|
|
|
STD_MAP_REFLECTOR(std::map< GLenum COMMA osgUtil::Statistics::PrimitivePair >);
|
|
|
|
|
|
|
|
STD_MAP_REFLECTOR(std::map< GLenum COMMA unsigned int >);
|
|
|
|
|
|
|
|
STD_PAIR_REFLECTOR(std::pair< unsigned int COMMA unsigned int >);
|
|
|
|
|
2006-07-13 23:56:54 +08:00
|
|
|
STD_SET_REFLECTOR(std::set< osg::Drawable * >);
|
|
|
|
|