From Marco Jez, improvements to osgIntrospection, and new automatically generated

osgWrappers/osg set.
This commit is contained in:
Robert Osfield
2005-04-07 20:00:17 +00:00
parent 5b4482c70d
commit 7a27a0bef7
132 changed files with 8608 additions and 301 deletions

View File

@@ -0,0 +1,98 @@
// ***************************************************************************
//
// Generated automatically by genwrapper.
// Please DO NOT EDIT this file!
//
// ***************************************************************************
#include <osgIntrospection/ReflectionMacros>
#include <osgIntrospection/TypedMethodInfo>
#include <osgIntrospection/Attributes>
#include <osg/BufferObject>
#include <osg/CopyOp>
#include <osg/Image>
#include <osg/Object>
TYPE_NAME_ALIAS(std::vector< unsigned int >, osg::Image::MipmapDataType);
BEGIN_ENUM_REFLECTOR(osg::Image::AllocationMode)
EnumLabel(osg::Image::NO_DELETE);
EnumLabel(osg::Image::USE_NEW_DELETE);
EnumLabel(osg::Image::USE_MALLOC_FREE);
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osg::Image)
BaseType(osg::Object);
Constructor0();
ConstructorWithDefaults2(IN, const osg::Image &, image, , 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::Image &, rhs);
Method1(void, setFileName, IN, const std::string &, fileName);
Method0(const std::string &, getFileName);
Method1(void, setAllocationMode, IN, osg::Image::AllocationMode, mode);
Method0(osg::Image::AllocationMode, getAllocationMode);
MethodWithDefaults6(void, allocateImage, IN, int, s, , IN, int, t, , IN, int, r, , IN, GLenum, pixelFormat, , IN, GLenum, type, , IN, int, packing, 1);
MethodWithDefaults9(void, setImage, IN, int, s, , IN, int, t, , IN, int, r, , IN, GLint, internalTextureformat, , IN, GLenum, pixelFormat, , IN, GLenum, type, , IN, unsigned char *, data, , IN, osg::Image::AllocationMode, mode, , IN, int, packing, 1);
Method6(void, readPixels, IN, int, x, IN, int, y, IN, int, width, IN, int, height, IN, GLenum, pixelFormat, IN, GLenum, type);
Method2(void, readImageFromCurrentTexture, IN, unsigned int, contextID, IN, bool, copyMipMapsIfAvailable);
Method3(void, scaleImage, IN, int, s, IN, int, t, IN, int, r);
Method4(void, scaleImage, IN, int, s, IN, int, t, IN, int, r, IN, GLenum, newDataType);
Method4(void, copySubImage, IN, int, s_offset, IN, int, t_offset, IN, int, r_offset, IN, osg::Image *, source);
Method0(int, s);
Method0(int, t);
Method0(int, r);
Method1(void, setInternalTextureFormat, IN, GLint, internalFormat);
Method0(GLint, getInternalTextureFormat);
Method1(void, setPixelFormat, IN, GLenum, pixelFormat);
Method0(GLenum, getPixelFormat);
Method0(GLenum, getDataType);
Method0(unsigned int, getPacking);
Method0(unsigned int, getPixelSizeInBits);
Method0(unsigned int, getRowSizeInBytes);
Method0(unsigned int, getImageSizeInBytes);
Method0(unsigned int, getTotalSizeInBytes);
Method0(unsigned int, getTotalSizeInBytesIncludingMipmaps);
Method0(unsigned char *, data);
Method0(const unsigned char *, data);
MethodWithDefaults3(unsigned char *, data, IN, int, column, , IN, int, row, 0, IN, int, image, 0);
MethodWithDefaults3(const unsigned char *, data, IN, int, column, , IN, int, row, 0, IN, int, image, 0);
Method0(void, flipHorizontal);
Method0(void, flipVertical);
Method1(void, ensureValidSizeForTexturing, IN, GLint, maxTextureSize);
Method0(void, dirty);
Method1(void, setModifiedCount, IN, unsigned int, value);
Method0(unsigned int, getModifiedCount);
Method0(bool, isMipmap);
Method0(unsigned int, getNumMipmapLevels);
Method1(void, setMipmapLevels, IN, const osg::Image::MipmapDataType &, mipmapDataVector);
Method0(const osg::Image::MipmapDataType &, getMipmapLevels);
Method1(unsigned int, getMipmapOffset, IN, unsigned int, mipmapLevel);
Method1(unsigned char *, getMipmapData, IN, unsigned int, mipmapLevel);
Method1(const unsigned char *, getMipmapData, IN, unsigned int, mipmapLevel);
Method0(bool, isImageTranslucent);
Method1(void, setPixelBufferObject, IN, osg::PixelBufferObject *, buffer);
Method0(osg::PixelBufferObject *, getPixelBufferObject);
Method0(const osg::PixelBufferObject *, getPixelBufferObject);
Property(osg::Image::AllocationMode, AllocationMode);
ReadOnlyProperty(GLenum, DataType);
Property(const std::string &, FileName);
ReadOnlyProperty(unsigned int, ImageSizeInBytes);
Property(GLint, InternalTextureFormat);
Property(const osg::Image::MipmapDataType &, MipmapLevels);
Property(unsigned int, ModifiedCount);
ReadOnlyProperty(unsigned int, Packing);
Property(osg::PixelBufferObject *, PixelBufferObject);
Property(GLenum, PixelFormat);
ReadOnlyProperty(unsigned int, PixelSizeInBits);
ReadOnlyProperty(unsigned int, RowSizeInBytes);
ReadOnlyProperty(unsigned int, TotalSizeInBytes);
ReadOnlyProperty(unsigned int, TotalSizeInBytesIncludingMipmaps);
END_REFLECTOR
STD_VECTOR_REFLECTOR(std::vector< unsigned int >);