Updated wrappers

This commit is contained in:
Robert Osfield
2005-07-20 08:03:37 +00:00
parent 6778bc3981
commit 6b873f33f5
5 changed files with 321 additions and 3 deletions

View File

@@ -0,0 +1,26 @@
// ***************************************************************************
//
// Generated automatically by genwrapper.
// Please DO NOT EDIT this file!
//
// ***************************************************************************
#include <osgIntrospection/ReflectionMacros>
#include <osgIntrospection/TypedMethodInfo>
#include <osgIntrospection/Attributes>
#include <osg/Endian>
// Must undefine IN and OUT macros defined in Windows headers
#ifdef IN
#undef IN
#endif
#ifdef OUT
#undef OUT
#endif
BEGIN_ENUM_REFLECTOR(osg::Endian)
I_EnumLabel(osg::BigEndian);
I_EnumLabel(osg::LittleEndian);
END_REFLECTOR

View File

@@ -0,0 +1,145 @@
// ***************************************************************************
//
// Generated automatically by genwrapper.
// Please DO NOT EDIT this file!
//
// ***************************************************************************
#include <osgIntrospection/ReflectionMacros>
#include <osgIntrospection/TypedMethodInfo>
#include <osgIntrospection/Attributes>
#include <osg/GL2Extensions>
// Must undefine IN and OUT macros defined in Windows headers
#ifdef IN
#undef IN
#endif
#ifdef OUT
#undef OUT
#endif
BEGIN_OBJECT_REFLECTOR(osg::GL2Extensions)
I_BaseType(osg::Referenced);
I_Constructor1(IN, unsigned int, contextID);
I_Constructor1(IN, const osg::GL2Extensions &, rhs);
I_Method1(void, lowestCommonDenominator, IN, const osg::GL2Extensions &, rhs);
I_Method1(void, setupGL2Extensions, IN, unsigned int, contextID);
I_Method0(bool, isGlslSupported);
I_Method0(float, getGlVersion);
I_Method0(float, getLanguageVersion);
I_Method1(void, setShaderObjectsSupported, IN, bool, flag);
I_Method0(bool, isShaderObjectsSupported);
I_Method1(void, setVertexShaderSupported, IN, bool, flag);
I_Method0(bool, isVertexShaderSupported);
I_Method1(void, setFragmentShaderSupported, IN, bool, flag);
I_Method0(bool, isFragmentShaderSupported);
I_Method1(void, setLanguage100Supported, IN, bool, flag);
I_Method0(bool, isLanguage100Supported);
I_Method2(void, glBlendEquationSeparate, IN, GLenum, modeRGB, IN, GLenum, modeAlpha);
I_Method2(void, glDrawBuffers, IN, GLsizei, n, IN, const GLenum *, bufs);
I_Method4(void, glStencilOpSeparate, IN, GLenum, face, IN, GLenum, sfail, IN, GLenum, dpfail, IN, GLenum, dppass);
I_Method4(void, glStencilFuncSeparate, IN, GLenum, frontfunc, IN, GLenum, backfunc, IN, GLint, ref, IN, GLuint, mask);
I_Method2(void, glStencilMaskSeparate, IN, GLenum, face, IN, GLuint, mask);
I_Method2(void, glAttachShader, IN, GLuint, program, IN, GLuint, shader);
I_Method3(void, glBindAttribLocation, IN, GLuint, program, IN, GLuint, index, IN, const GLchar *, name);
I_Method1(void, glCompileShader, IN, GLuint, shader);
I_Method0(GLuint, glCreateProgram);
I_Method1(GLuint, glCreateShader, IN, GLenum, type);
I_Method1(void, glDeleteProgram, IN, GLuint, program);
I_Method1(void, glDeleteShader, IN, GLuint, shader);
I_Method2(void, glDetachShader, IN, GLuint, program, IN, GLuint, shader);
I_Method1(void, glDisableVertexAttribArray, IN, GLuint, index);
I_Method1(void, glEnableVertexAttribArray, IN, GLuint, index);
I_Method7(void, glGetActiveAttrib, IN, GLuint, program, IN, GLuint, index, IN, GLsizei, bufSize, IN, GLsizei *, length, IN, GLint *, size, IN, GLenum *, type, IN, GLchar *, name);
I_Method7(void, glGetActiveUniform, IN, GLuint, program, IN, GLuint, index, IN, GLsizei, bufSize, IN, GLsizei *, length, IN, GLint *, size, IN, GLenum *, type, IN, GLchar *, name);
I_Method4(void, glGetAttachedShaders, IN, GLuint, program, IN, GLsizei, maxCount, IN, GLsizei *, count, IN, GLuint *, obj);
I_Method2(GLint, glGetAttribLocation, IN, GLuint, program, IN, const GLchar *, name);
I_Method3(void, glGetProgramiv, IN, GLuint, program, IN, GLenum, pname, IN, GLint *, params);
I_Method4(void, glGetProgramInfoLog, IN, GLuint, program, IN, GLsizei, bufSize, IN, GLsizei *, length, IN, GLchar *, infoLog);
I_Method3(void, glGetShaderiv, IN, GLuint, shader, IN, GLenum, pname, IN, GLint *, params);
I_Method4(void, glGetShaderInfoLog, IN, GLuint, shader, IN, GLsizei, bufSize, IN, GLsizei *, length, IN, GLchar *, infoLog);
I_Method4(void, glGetShaderSource, IN, GLuint, shader, IN, GLsizei, bufSize, IN, GLsizei *, length, IN, GLchar *, source);
I_Method2(GLint, glGetUniformLocation, IN, GLuint, program, IN, const GLchar *, name);
I_Method3(void, glGetUniformfv, IN, GLuint, program, IN, GLint, location, IN, GLfloat *, params);
I_Method3(void, glGetUniformiv, IN, GLuint, program, IN, GLint, location, IN, GLint *, params);
I_Method3(void, glGetVertexAttribdv, IN, GLuint, index, IN, GLenum, pname, IN, GLdouble *, params);
I_Method3(void, glGetVertexAttribfv, IN, GLuint, index, IN, GLenum, pname, IN, GLfloat *, params);
I_Method3(void, glGetVertexAttribiv, IN, GLuint, index, IN, GLenum, pname, IN, GLint *, params);
I_Method3(void, glGetVertexAttribPointerv, IN, GLuint, index, IN, GLenum, pname, IN, GLvoid **, pointer);
I_Method1(GLboolean, glIsProgram, IN, GLuint, program);
I_Method1(GLboolean, glIsShader, IN, GLuint, shader);
I_Method1(void, glLinkProgram, IN, GLuint, program);
I_Method4(void, glShaderSource, IN, GLuint, shader, IN, GLsizei, count, IN, const GLchar **, string, IN, const GLint *, length);
I_Method1(void, glUseProgram, IN, GLuint, program);
I_Method2(void, glUniform1f, IN, GLint, location, IN, GLfloat, v0);
I_Method3(void, glUniform2f, IN, GLint, location, IN, GLfloat, v0, IN, GLfloat, v1);
I_Method4(void, glUniform3f, IN, GLint, location, IN, GLfloat, v0, IN, GLfloat, v1, IN, GLfloat, v2);
I_Method5(void, glUniform4f, IN, GLint, location, IN, GLfloat, v0, IN, GLfloat, v1, IN, GLfloat, v2, IN, GLfloat, v3);
I_Method2(void, glUniform1i, IN, GLint, location, IN, GLint, v0);
I_Method3(void, glUniform2i, IN, GLint, location, IN, GLint, v0, IN, GLint, v1);
I_Method4(void, glUniform3i, IN, GLint, location, IN, GLint, v0, IN, GLint, v1, IN, GLint, v2);
I_Method5(void, glUniform4i, IN, GLint, location, IN, GLint, v0, IN, GLint, v1, IN, GLint, v2, IN, GLint, v3);
I_Method3(void, glUniform1fv, IN, GLint, location, IN, GLsizei, count, IN, const GLfloat *, value);
I_Method3(void, glUniform2fv, IN, GLint, location, IN, GLsizei, count, IN, const GLfloat *, value);
I_Method3(void, glUniform3fv, IN, GLint, location, IN, GLsizei, count, IN, const GLfloat *, value);
I_Method3(void, glUniform4fv, IN, GLint, location, IN, GLsizei, count, IN, const GLfloat *, value);
I_Method3(void, glUniform1iv, IN, GLint, location, IN, GLsizei, count, IN, const GLint *, value);
I_Method3(void, glUniform2iv, IN, GLint, location, IN, GLsizei, count, IN, const GLint *, value);
I_Method3(void, glUniform3iv, IN, GLint, location, IN, GLsizei, count, IN, const GLint *, value);
I_Method3(void, glUniform4iv, IN, GLint, location, IN, GLsizei, count, IN, const GLint *, value);
I_Method4(void, glUniformMatrix2fv, IN, GLint, location, IN, GLsizei, count, IN, GLboolean, transpose, IN, const GLfloat *, value);
I_Method4(void, glUniformMatrix3fv, IN, GLint, location, IN, GLsizei, count, IN, GLboolean, transpose, IN, const GLfloat *, value);
I_Method4(void, glUniformMatrix4fv, IN, GLint, location, IN, GLsizei, count, IN, GLboolean, transpose, IN, const GLfloat *, value);
I_Method1(void, glValidateProgram, IN, GLuint, program);
I_Method2(void, glVertexAttrib1d, IN, GLuint, index, IN, GLdouble, x);
I_Method2(void, glVertexAttrib1dv, IN, GLuint, index, IN, const GLdouble *, v);
I_Method2(void, glVertexAttrib1f, IN, GLuint, index, IN, GLfloat, x);
I_Method2(void, glVertexAttrib1fv, IN, GLuint, index, IN, const GLfloat *, v);
I_Method2(void, glVertexAttrib1s, IN, GLuint, index, IN, GLshort, x);
I_Method2(void, glVertexAttrib1sv, IN, GLuint, index, IN, const GLshort *, v);
I_Method3(void, glVertexAttrib2d, IN, GLuint, index, IN, GLdouble, x, IN, GLdouble, y);
I_Method2(void, glVertexAttrib2dv, IN, GLuint, index, IN, const GLdouble *, v);
I_Method3(void, glVertexAttrib2f, IN, GLuint, index, IN, GLfloat, x, IN, GLfloat, y);
I_Method2(void, glVertexAttrib2fv, IN, GLuint, index, IN, const GLfloat *, v);
I_Method3(void, glVertexAttrib2s, IN, GLuint, index, IN, GLshort, x, IN, GLshort, y);
I_Method2(void, glVertexAttrib2sv, IN, GLuint, index, IN, const GLshort *, v);
I_Method4(void, glVertexAttrib3d, IN, GLuint, index, IN, GLdouble, x, IN, GLdouble, y, IN, GLdouble, z);
I_Method2(void, glVertexAttrib3dv, IN, GLuint, index, IN, const GLdouble *, v);
I_Method4(void, glVertexAttrib3f, IN, GLuint, index, IN, GLfloat, x, IN, GLfloat, y, IN, GLfloat, z);
I_Method2(void, glVertexAttrib3fv, IN, GLuint, index, IN, const GLfloat *, v);
I_Method4(void, glVertexAttrib3s, IN, GLuint, index, IN, GLshort, x, IN, GLshort, y, IN, GLshort, z);
I_Method2(void, glVertexAttrib3sv, IN, GLuint, index, IN, const GLshort *, v);
I_Method2(void, glVertexAttrib4Nbv, IN, GLuint, index, IN, const GLbyte *, v);
I_Method2(void, glVertexAttrib4Niv, IN, GLuint, index, IN, const GLint *, v);
I_Method2(void, glVertexAttrib4Nsv, IN, GLuint, index, IN, const GLshort *, v);
I_Method5(void, glVertexAttrib4Nub, IN, GLuint, index, IN, GLubyte, x, IN, GLubyte, y, IN, GLubyte, z, IN, GLubyte, w);
I_Method2(void, glVertexAttrib4Nubv, IN, GLuint, index, IN, const GLubyte *, v);
I_Method2(void, glVertexAttrib4Nuiv, IN, GLuint, index, IN, const GLuint *, v);
I_Method2(void, glVertexAttrib4Nusv, IN, GLuint, index, IN, const GLushort *, v);
I_Method2(void, glVertexAttrib4bv, IN, GLuint, index, IN, const GLbyte *, v);
I_Method5(void, glVertexAttrib4d, IN, GLuint, index, IN, GLdouble, x, IN, GLdouble, y, IN, GLdouble, z, IN, GLdouble, w);
I_Method2(void, glVertexAttrib4dv, IN, GLuint, index, IN, const GLdouble *, v);
I_Method5(void, glVertexAttrib4f, IN, GLuint, index, IN, GLfloat, x, IN, GLfloat, y, IN, GLfloat, z, IN, GLfloat, w);
I_Method2(void, glVertexAttrib4fv, IN, GLuint, index, IN, const GLfloat *, v);
I_Method2(void, glVertexAttrib4iv, IN, GLuint, index, IN, const GLint *, v);
I_Method5(void, glVertexAttrib4s, IN, GLuint, index, IN, GLshort, x, IN, GLshort, y, IN, GLshort, z, IN, GLshort, w);
I_Method2(void, glVertexAttrib4sv, IN, GLuint, index, IN, const GLshort *, v);
I_Method2(void, glVertexAttrib4ubv, IN, GLuint, index, IN, const GLubyte *, v);
I_Method2(void, glVertexAttrib4uiv, IN, GLuint, index, IN, const GLuint *, v);
I_Method2(void, glVertexAttrib4usv, IN, GLuint, index, IN, const GLushort *, v);
I_Method6(void, glVertexAttribPointer, IN, GLuint, index, IN, GLint, size, IN, GLenum, type, IN, GLboolean, normalized, IN, GLsizei, stride, IN, const GLvoid *, pointer);
I_Method0(GLuint, getCurrentProgram);
I_Method2(bool, getProgramInfoLog, IN, GLuint, program, IN, std::string &, result);
I_Method2(bool, getShaderInfoLog, IN, GLuint, shader, IN, std::string &, result);
I_Method2(bool, getAttribLocation, IN, const char *, attribName, IN, GLuint &, slot);
I_ReadOnlyProperty(GLuint, CurrentProgram);
I_WriteOnlyProperty(bool, FragmentShaderSupported);
I_ReadOnlyProperty(float, GlVersion);
I_WriteOnlyProperty(bool, Language100Supported);
I_ReadOnlyProperty(float, LanguageVersion);
I_WriteOnlyProperty(bool, ShaderObjectsSupported);
I_WriteOnlyProperty(bool, VertexShaderSupported);
I_WriteOnlyProperty(unsigned int, upGL2Extensions);
END_REFLECTOR

View File

@@ -0,0 +1,31 @@
// ***************************************************************************
//
// Generated automatically by genwrapper.
// Please DO NOT EDIT this file!
//
// ***************************************************************************
#include <osgIntrospection/ReflectionMacros>
#include <osgIntrospection/TypedMethodInfo>
#include <osgIntrospection/Attributes>
#include <osg/Notify>
// Must undefine IN and OUT macros defined in Windows headers
#ifdef IN
#undef IN
#endif
#ifdef OUT
#undef OUT
#endif
BEGIN_ENUM_REFLECTOR(osg::NotifySeverity)
I_EnumLabel(osg::ALWAYS);
I_EnumLabel(osg::FATAL);
I_EnumLabel(osg::WARN);
I_EnumLabel(osg::NOTICE);
I_EnumLabel(osg::INFO);
I_EnumLabel(osg::DEBUG_INFO);
I_EnumLabel(osg::DEBUG_FP);
END_REFLECTOR

View File

@@ -6,8 +6,6 @@ CXXFILES =\
Font.cpp\
String.cpp\
Text.cpp\
Text.cpp\
Text.cpp\
LIBS += -losgText -losg -losgIntrospection $(GL_LIBS) $(OTHER_LIBS)

View File

@@ -9,7 +9,19 @@
#include <osgIntrospection/TypedMethodInfo>
#include <osgIntrospection/Attributes>
#include <osgText/Text.orig>
#include <osg/BoundingBox>
#include <osg/CopyOp>
#include <osg/Drawable>
#include <osg/Object>
#include <osg/PrimitiveSet>
#include <osg/Quat>
#include <osg/State>
#include <osg/StateSet>
#include <osg/Vec3>
#include <osg/Vec4>
#include <osgText/Font>
#include <osgText/String>
#include <osgText/Text>
// Must undefine IN and OUT macros defined in Windows headers
#ifdef IN
@@ -40,6 +52,9 @@ BEGIN_ENUM_REFLECTOR(osgText::Text::AlignmentType)
I_EnumLabel(osgText::Text::LEFT_BASE_LINE);
I_EnumLabel(osgText::Text::CENTER_BASE_LINE);
I_EnumLabel(osgText::Text::RIGHT_BASE_LINE);
I_EnumLabel(osgText::Text::LEFT_BOTTOM_BASE_LINE);
I_EnumLabel(osgText::Text::CENTER_BOTTOM_BASE_LINE);
I_EnumLabel(osgText::Text::RIGHT_BOTTOM_BASE_LINE);
I_EnumLabel(osgText::Text::BASE_LINE);
END_REFLECTOR
@@ -65,6 +80,87 @@ BEGIN_ENUM_REFLECTOR(osgText::Text::DrawModeMask)
I_EnumLabel(osgText::Text::ALIGNMENT);
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osgText::Text)
I_BaseType(osg::Drawable);
I_Constructor0();
I_ConstructorWithDefaults2(IN, const osgText::Text &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY);
I_Method0(osg::Object *, cloneType);
I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop);
I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj);
I_Method0(const char *, className);
I_Method0(const char *, libraryName);
I_MethodWithDefaults1(void, setFont, IN, osgText::Font *, font, 0);
I_Method1(void, setFont, IN, const std::string &, fontfile);
I_Method0(const osgText::Font *, getFont);
I_Method2(void, setFontResolution, IN, unsigned int, width, IN, unsigned int, height);
I_Method0(unsigned int, getFontWidth);
I_Method0(unsigned int, getFontHeight);
I_Method1(void, setText, IN, const osgText::String &, text);
I_Method1(void, setText, IN, const std::string &, text);
I_Method2(void, setText, IN, const std::string &, text, IN, osgText::String::Encoding, encoding);
I_Method1(void, setText, IN, const wchar_t *, text);
I_Method0(osgText::String &, getText);
I_Method0(const osgText::String &, getText);
I_Method0(void, update);
I_MethodWithDefaults2(void, setCharacterSize, IN, float, height, , IN, float, aspectRatio, 1.0f);
I_Method0(float, getCharacterHeight);
I_Method0(float, getCharacterAspectRatio);
I_Method1(void, setCharacterSizeMode, IN, osgText::Text::CharacterSizeMode, mode);
I_Method0(osgText::Text::CharacterSizeMode, getCharacterSizeMode);
I_Method1(void, setMaximumWidth, IN, float, maximumWidth);
I_Method0(float, getMaximumWidth);
I_Method1(void, setMaximumHeight, IN, float, maximumHeight);
I_Method0(float, getMaximumHeight);
I_Method1(void, setPosition, IN, const osg::Vec3 &, pos);
I_Method0(const osg::Vec3 &, getPosition);
I_Method1(void, setAlignment, IN, osgText::Text::AlignmentType, alignment);
I_Method0(osgText::Text::AlignmentType, getAlignment);
I_Method1(void, setAxisAlignment, IN, osgText::Text::AxisAlignment, axis);
I_Method1(void, setRotation, IN, const osg::Quat &, quat);
I_Method0(const osg::Quat &, getRotation);
I_Method1(void, setAutoRotateToScreen, IN, bool, autoRotateToScreen);
I_Method0(bool, getAutoRotateToScreen);
I_Method1(void, setLayout, IN, osgText::Text::Layout, layout);
I_Method0(osgText::Text::Layout, getLayout);
I_Method1(void, setColor, IN, const osg::Vec4 &, color);
I_Method0(const osg::Vec4 &, getColor);
I_Method1(void, setDrawMode, IN, unsigned int, mode);
I_Method0(unsigned int, getDrawMode);
I_Method1(void, setKerningType, IN, osgText::KerningType, kerningType);
I_Method0(osgText::KerningType, getKerningType);
I_Method0(unsigned int, getLineCount);
I_Method1(void, drawImplementation, IN, osg::State &, state);
I_Method1(bool, supports, IN, const osg::Drawable::AttributeFunctor &, x);
I_Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x);
I_Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, af);
I_Method1(bool, supports, IN, const osg::PrimitiveFunctor &, x);
I_Method1(void, accept, IN, osg::PrimitiveFunctor &, pf);
I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0);
I_Method1(const osgText::Text::GlyphQuads *, getGlyphQuads, IN, osg::StateSet *, stateSet);
I_Method0(const osgText::Text::TextureGlyphQuadMap &, getTextureGlyphQuadMap);
I_Method0(osg::BoundingBox, computeBound);
I_Property(osgText::Text::AlignmentType, Alignment);
I_Property(bool, AutoRotateToScreen);
I_WriteOnlyProperty(osgText::Text::AxisAlignment, AxisAlignment);
I_ReadOnlyProperty(float, CharacterAspectRatio);
I_ReadOnlyProperty(float, CharacterHeight);
I_Property(osgText::Text::CharacterSizeMode, CharacterSizeMode);
I_Property(const osg::Vec4 &, Color);
I_Property(unsigned int, DrawMode);
I_WriteOnlyProperty(osgText::Font *, Font);
I_ReadOnlyProperty(unsigned int, FontHeight);
I_ReadOnlyProperty(unsigned int, FontWidth);
I_Property(osgText::KerningType, KerningType);
I_Property(osgText::Text::Layout, Layout);
I_ReadOnlyProperty(unsigned int, LineCount);
I_Property(float, MaximumHeight);
I_Property(float, MaximumWidth);
I_Property(const osg::Vec3 &, Position);
I_Property(const osg::Quat &, Rotation);
I_Property(const osgText::String &, Text);
I_ReadOnlyProperty(const osgText::Text::TextureGlyphQuadMap &, TextureGlyphQuadMap);
END_REFLECTOR
TYPE_NAME_ALIAS(std::vector< osgText::Font::Glyph * >, osgText::Text::GlyphQuads::Glyphs);
TYPE_NAME_ALIAS(std::vector< unsigned int >, osgText::Text::GlyphQuads::LineNumbers);
@@ -75,3 +171,25 @@ TYPE_NAME_ALIAS(std::vector< osg::Vec3 >, osgText::Text::GlyphQuads::Coords3);
TYPE_NAME_ALIAS(std::vector< osg::Vec2 >, osgText::Text::GlyphQuads::TexCoords);
BEGIN_VALUE_REFLECTOR(osgText::Text::GlyphQuads)
I_Constructor0();
I_Method0(osgText::Text::GlyphQuads::Glyphs, getGlyphs);
I_Method0(const osgText::Text::GlyphQuads::Glyphs, getGlyphs);
I_Method0(osgText::Text::GlyphQuads::Coords2 &, getCoords);
I_Method0(const osgText::Text::GlyphQuads::Coords2 &, getCoords);
I_Method1(osgText::Text::GlyphQuads::Coords3 &, getTransformedCoords, IN, unsigned int, contexID);
I_Method1(const osgText::Text::GlyphQuads::Coords3 &, getTransformedCoords, IN, unsigned int, contexID);
I_Method0(osgText::Text::GlyphQuads::TexCoords &, getTexCoords);
I_Method0(const osgText::Text::GlyphQuads::TexCoords &, getTexCoords);
I_Method0(osgText::Text::GlyphQuads::LineNumbers &, getLineNumbers);
I_Method0(const osgText::Text::GlyphQuads::LineNumbers &, getLineNumbers);
I_ReadOnlyProperty(osgText::Text::GlyphQuads::Coords2 &, Coords);
I_ReadOnlyProperty(osgText::Text::GlyphQuads::Glyphs, Glyphs);
I_ReadOnlyProperty(osgText::Text::GlyphQuads::LineNumbers &, LineNumbers);
I_ReadOnlyProperty(osgText::Text::GlyphQuads::TexCoords &, TexCoords);
END_REFLECTOR
STD_MAP_REFLECTOR(std::map< osg::ref_ptr< osg::StateSet > COMMA osgText::Text::GlyphQuads >);
STD_VECTOR_REFLECTOR(std::vector< osgText::Font::Glyph * >);