Updated wrappers

This commit is contained in:
Robert Osfield
2005-05-16 09:41:10 +00:00
parent 668aada787
commit 74bce0e410
244 changed files with 11323 additions and 9410 deletions

View File

@@ -14,6 +14,14 @@
#include <osg/Vec4>
#include <osgUtil/Statistics>
// Must undefine IN and OUT macros defined in Windows headers
#ifdef IN
#undef IN
#endif
#ifdef OUT
#undef OUT
#endif
TYPE_NAME_ALIAS(std::pair< unsigned int COMMA unsigned int >, osgUtil::Statistics::PrimitivePair);
TYPE_NAME_ALIAS(std::map< GLenum COMMA osgUtil::Statistics::PrimitivePair >, osgUtil::Statistics::PrimtiveValueMap);
@@ -21,51 +29,51 @@ TYPE_NAME_ALIAS(std::map< GLenum COMMA osgUtil::Statistics::PrimitivePair >, os
TYPE_NAME_ALIAS(std::map< GLenum COMMA unsigned int >, osgUtil::Statistics::PrimtiveCountMap);
BEGIN_ENUM_REFLECTOR(osgUtil::Statistics::statsType)
EnumLabel(osgUtil::Statistics::STAT_NONE);
EnumLabel(osgUtil::Statistics::STAT_FRAMERATE);
EnumLabel(osgUtil::Statistics::STAT_GRAPHS);
EnumLabel(osgUtil::Statistics::STAT_PRIMS);
EnumLabel(osgUtil::Statistics::STAT_PRIMSPERVIEW);
EnumLabel(osgUtil::Statistics::STAT_PRIMSPERBIN);
EnumLabel(osgUtil::Statistics::STAT_DC);
EnumLabel(osgUtil::Statistics::STAT_RESTART);
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);
END_REFLECTOR
BEGIN_VALUE_REFLECTOR(osgUtil::Statistics)
BaseType(osg::PrimitiveFunctor);
Constructor0();
Method0(void, reset);
Method1(void, setType, IN, osgUtil::Statistics::statsType, t);
Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec3 *, x);
Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec2 *, x);
Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec4 *, x);
Method3(void, drawArrays, IN, GLenum, mode, IN, GLint, x, IN, GLsizei, count);
Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLubyte *, x);
Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLushort *, x);
Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLuint *, x);
Method1(void, begin, IN, GLenum, mode);
Method0(void, vertex);
Method3(void, vertex, IN, float, x, IN, float, x, IN, float, x);
Method1(void, vertex, IN, const osg::Vec3 &, x);
Method1(void, vertex, IN, const osg::Vec2 &, x);
Method1(void, vertex, IN, const osg::Vec4 &, x);
Method2(void, vertex, IN, float, x, IN, float, x);
Method4(void, vertex, IN, float, x, IN, float, x, IN, float, x, IN, float, x);
Method0(void, end);
Method0(void, addDrawable);
Method0(void, addMatrix);
Method1(void, addLight, IN, int, np);
Method1(void, addImpostor, IN, int, np);
Method0(int, getBins);
Method1(void, setDepth, IN, int, d);
Method1(void, addBins, IN, int, np);
Method1(void, setBinNo, IN, int, n);
Method0(PrimtiveCountMap::iterator, GetPrimitivesBegin);
Method0(PrimtiveCountMap::iterator, GetPrimitivesEnd);
WriteOnlyProperty(int, BinNo);
ReadOnlyProperty(int, Bins);
WriteOnlyProperty(int, Depth);
WriteOnlyProperty(osgUtil::Statistics::statsType, Type);
BEGIN_OBJECT_REFLECTOR(osgUtil::Statistics)
I_BaseType(osg::PrimitiveFunctor);
I_Constructor0();
I_Method0(void, reset);
I_Method1(void, setType, IN, osgUtil::Statistics::statsType, t);
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);
I_Method0(osgUtil::Statistics::PrimtiveCountMap::iterator, GetPrimitivesBegin);
I_Method0(osgUtil::Statistics::PrimtiveCountMap::iterator, GetPrimitivesEnd);
I_WriteOnlyProperty(int, BinNo);
I_ReadOnlyProperty(int, Bins);
I_WriteOnlyProperty(int, Depth);
I_WriteOnlyProperty(osgUtil::Statistics::statsType, Type);
END_REFLECTOR
STD_MAP_REFLECTOR(std::map< GLenum COMMA osgUtil::Statistics::PrimitivePair >);