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

@@ -13,39 +13,47 @@
#include <osg/Object>
#include <osg/Shader>
// Must undefine IN and OUT macros defined in Windows headers
#ifdef IN
#undef IN
#endif
#ifdef OUT
#undef OUT
#endif
BEGIN_ENUM_REFLECTOR(osg::Shader::Type)
EnumLabel(osg::Shader::VERTEX);
EnumLabel(osg::Shader::FRAGMENT);
EnumLabel(osg::Shader::UNDEFINED);
I_EnumLabel(osg::Shader::VERTEX);
I_EnumLabel(osg::Shader::FRAGMENT);
I_EnumLabel(osg::Shader::UNDEFINED);
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osg::Shader)
BaseType(osg::Object);
ConstructorWithDefaults1(IN, osg::Shader::Type, type, osg::Shader::UNDEFINED);
Constructor2(IN, osg::Shader::Type, type, IN, const std::string &, source);
ConstructorWithDefaults2(IN, const osg::Shader &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY);
Method0(osg::Object *, cloneType);
Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop);
Method1(bool, isSameKindAs, IN, const osg::Object *, obj);
Method0(const char *, libraryName);
Method0(const char *, className);
Method1(int, compare, IN, const osg::Shader &, rhs);
Method1(bool, setType, IN, osg::Shader::Type, t);
Method1(void, setShaderSource, IN, const std::string &, sourceText);
Method1(bool, loadShaderSourceFromFile, IN, const std::string &, fileName);
Method0(const std::string &, getShaderSource);
Method0(osg::Shader::Type, getType);
Method0(const char *, getTypename);
Method0(void, dirtyShader);
Method1(void, compileShader, IN, unsigned int, contextID);
Method2(void, attachShader, IN, unsigned int, contextID, IN, GLuint, program);
Method2(bool, getGlShaderInfoLog, IN, unsigned int, contextID, IN, std::string &, log);
Method1(void, setName, IN, const std::string &, name);
Method1(void, setName, IN, const char *, name);
Method0(const std::string &, getName);
Property(const std::string &, Name);
Property(const std::string &, ShaderSource);
PropertyWithReturnType(osg::Shader::Type, Type, bool);
ReadOnlyProperty(const char *, Typename);
I_BaseType(osg::Object);
I_ConstructorWithDefaults1(IN, osg::Shader::Type, type, osg::Shader::UNDEFINED);
I_Constructor2(IN, osg::Shader::Type, type, IN, const std::string &, source);
I_ConstructorWithDefaults2(IN, const osg::Shader &, rhs, , 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 *, libraryName);
I_Method0(const char *, className);
I_Method1(int, compare, IN, const osg::Shader &, rhs);
I_Method1(bool, setType, IN, osg::Shader::Type, t);
I_Method1(void, setShaderSource, IN, const std::string &, sourceText);
I_Method1(bool, loadShaderSourceFromFile, IN, const std::string &, fileName);
I_Method0(const std::string &, getShaderSource);
I_Method0(osg::Shader::Type, getType);
I_Method0(const char *, getTypename);
I_Method0(void, dirtyShader);
I_Method1(void, compileShader, IN, unsigned int, contextID);
I_Method2(void, attachShader, IN, unsigned int, contextID, IN, GLuint, program);
I_Method2(bool, getGlShaderInfoLog, IN, unsigned int, contextID, IN, std::string &, log);
I_Method1(void, setName, IN, const std::string &, name);
I_Method1(void, setName, IN, const char *, name);
I_Method0(const std::string &, getName);
I_Property(const std::string &, Name);
I_Property(const std::string &, ShaderSource);
I_PropertyWithReturnType(osg::Shader::Type, Type, bool);
I_ReadOnlyProperty(const char *, Typename);
END_REFLECTOR