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

@@ -17,58 +17,66 @@
#include <osg/Vec4>
#include <osg/VertexProgram>
// Must undefine IN and OUT macros defined in Windows headers
#ifdef IN
#undef IN
#endif
#ifdef OUT
#undef OUT
#endif
TYPE_NAME_ALIAS(std::map< GLuint COMMA osg::Vec4 >, osg::VertexProgram::LocalParamList);
TYPE_NAME_ALIAS(std::map< GLenum COMMA osg::Matrix >, osg::VertexProgram::MatrixList);
BEGIN_OBJECT_REFLECTOR(osg::VertexProgram)
BaseType(osg::StateAttribute);
Constructor0();
ConstructorWithDefaults2(IN, const osg::VertexProgram &, vp, , 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);
Method0(osg::StateAttribute::Type, getType);
Method1(int, compare, IN, const osg::StateAttribute &, sa);
Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage);
Method1(GLuint &, getVertexProgramID, IN, unsigned int, contextID);
Method1(void, setVertexProgram, IN, const char *, program);
Method1(void, setVertexProgram, IN, const std::string &, program);
Method0(const std::string &, getVertexProgram);
Method2(void, setProgramLocalParameter, IN, const GLuint, index, IN, const osg::Vec4 &, p);
Method1(void, setLocalParameters, IN, const osg::VertexProgram::LocalParamList &, lpl);
Method0(osg::VertexProgram::LocalParamList &, getLocalParameters);
Method0(const osg::VertexProgram::LocalParamList &, getLocalParameters);
Method2(void, setMatrix, IN, const GLenum, mode, IN, const osg::Matrix &, matrix);
Method1(void, setMatrices, IN, const osg::VertexProgram::MatrixList &, matrices);
Method0(osg::VertexProgram::MatrixList &, getMatrices);
Method0(const osg::VertexProgram::MatrixList &, getMatrices);
Method0(void, dirtyVertexProgramObject);
Method1(void, apply, IN, osg::State &, state);
Method1(void, compileGLObjects, IN, osg::State &, state);
MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0);
Property(const osg::VertexProgram::LocalParamList &, LocalParameters);
Property(const osg::VertexProgram::MatrixList &, Matrices);
ReadOnlyProperty(osg::StateAttribute::Type, Type);
Property(const std::string &, VertexProgram);
I_BaseType(osg::StateAttribute);
I_Constructor0();
I_ConstructorWithDefaults2(IN, const osg::VertexProgram &, vp, , 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_Method0(osg::StateAttribute::Type, getType);
I_Method1(int, compare, IN, const osg::StateAttribute &, sa);
I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage);
I_Method1(GLuint &, getVertexProgramID, IN, unsigned int, contextID);
I_Method1(void, setVertexProgram, IN, const char *, program);
I_Method1(void, setVertexProgram, IN, const std::string &, program);
I_Method0(const std::string &, getVertexProgram);
I_Method2(void, setProgramLocalParameter, IN, const GLuint, index, IN, const osg::Vec4 &, p);
I_Method1(void, setLocalParameters, IN, const osg::VertexProgram::LocalParamList &, lpl);
I_Method0(osg::VertexProgram::LocalParamList &, getLocalParameters);
I_Method0(const osg::VertexProgram::LocalParamList &, getLocalParameters);
I_Method2(void, setMatrix, IN, const GLenum, mode, IN, const osg::Matrix &, matrix);
I_Method1(void, setMatrices, IN, const osg::VertexProgram::MatrixList &, matrices);
I_Method0(osg::VertexProgram::MatrixList &, getMatrices);
I_Method0(const osg::VertexProgram::MatrixList &, getMatrices);
I_Method0(void, dirtyVertexProgramObject);
I_Method1(void, apply, IN, osg::State &, state);
I_Method1(void, compileGLObjects, IN, osg::State &, state);
I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0);
I_Property(const osg::VertexProgram::LocalParamList &, LocalParameters);
I_Property(const osg::VertexProgram::MatrixList &, Matrices);
I_ReadOnlyProperty(osg::StateAttribute::Type, Type);
I_Property(const std::string &, VertexProgram);
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osg::VertexProgram::Extensions)
BaseType(osg::Referenced);
Constructor1(IN, unsigned int, contextID);
Constructor1(IN, const osg::VertexProgram::Extensions &, rhs);
Method1(void, lowestCommonDenominator, IN, const osg::VertexProgram::Extensions &, rhs);
Method1(void, setupGLExtenions, IN, unsigned int, contextID);
Method1(void, setVertexProgramSupported, IN, bool, flag);
Method0(bool, isVertexProgramSupported);
Method2(void, glBindProgram, IN, GLenum, target, IN, GLuint, id);
Method2(void, glGenPrograms, IN, GLsizei, n, IN, GLuint *, programs);
Method2(void, glDeletePrograms, IN, GLsizei, n, IN, GLuint *, programs);
Method4(void, glProgramString, IN, GLenum, target, IN, GLenum, format, IN, GLsizei, len, IN, const void *, string);
Method3(void, glProgramLocalParameter4fv, IN, GLenum, target, IN, GLuint, index, IN, const GLfloat *, params);
WriteOnlyProperty(bool, VertexProgramSupported);
WriteOnlyProperty(unsigned int, upGLExtenions);
I_BaseType(osg::Referenced);
I_Constructor1(IN, unsigned int, contextID);
I_Constructor1(IN, const osg::VertexProgram::Extensions &, rhs);
I_Method1(void, lowestCommonDenominator, IN, const osg::VertexProgram::Extensions &, rhs);
I_Method1(void, setupGLExtenions, IN, unsigned int, contextID);
I_Method1(void, setVertexProgramSupported, IN, bool, flag);
I_Method0(bool, isVertexProgramSupported);
I_Method2(void, glBindProgram, IN, GLenum, target, IN, GLuint, id);
I_Method2(void, glGenPrograms, IN, GLsizei, n, IN, GLuint *, programs);
I_Method2(void, glDeletePrograms, IN, GLsizei, n, IN, GLuint *, programs);
I_Method4(void, glProgramString, IN, GLenum, target, IN, GLenum, format, IN, GLsizei, len, IN, const void *, string);
I_Method3(void, glProgramLocalParameter4fv, IN, GLenum, target, IN, GLuint, index, IN, const GLfloat *, params);
I_WriteOnlyProperty(bool, VertexProgramSupported);
I_WriteOnlyProperty(unsigned int, upGLExtenions);
END_REFLECTOR