Improved support for texture subload/render to texture in various Texture classes

and RenderStage.
This commit is contained in:
Robert Osfield
2005-11-04 12:08:16 +00:00
parent 89b0ef09a8
commit 4915259878
13 changed files with 123 additions and 33 deletions

View File

@@ -46,7 +46,10 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TextureRectangle)
I_Method1(const osg::Image *, getImage, IN, unsigned, int);
I_Method0(unsigned int, getNumImages);
I_Method2(void, setTextureSize, IN, int, width, IN, int, height);
I_Method2(void, getTextureSize, IN, int &, width, IN, int &, height);
I_Method1(void, setTextureWidth, IN, int, width);
I_Method0(int, getTextureWidth);
I_Method1(void, setTextureHeight, IN, int, height);
I_Method0(int, getTextureHeight);
I_Method1(void, setSubloadCallback, IN, osg::TextureRectangle::SubloadCallback *, cb);
I_Method0(osg::TextureRectangle::SubloadCallback *, getSubloadCallback);
I_Method0(const osg::TextureRectangle::SubloadCallback *, getSubloadCallback);
@@ -55,7 +58,9 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TextureRectangle)
I_Method1(void, apply, IN, osg::State &, state);
I_Property(osg::Image *, Image);
I_Property(osg::TextureRectangle::SubloadCallback *, SubloadCallback);
I_Property(int, TextureHeight);
I_ReadOnlyProperty(GLenum, TextureTarget);
I_Property(int, TextureWidth);
I_ReadOnlyProperty(osg::StateAttribute::Type, Type);
END_REFLECTOR