Refactored osgTerrain so that the interface for setting up layer is more straight forward, and added support into GeometryTechnique for handling multiple layers

This commit is contained in:
Robert Osfield
2008-02-22 11:52:23 +00:00
parent 6516bf4910
commit 67f1503c7d
22 changed files with 819 additions and 456 deletions

View File

@@ -30,16 +30,6 @@ BEGIN_OBJECT_REFLECTOR(osg::TransferFunction)
I_Constructor0(____TransferFunction,
"",
"");
I_Method1(void, setTextureUnit, IN, int, textureUnit,
Properties::NON_VIRTUAL,
__void__setTextureUnit__int,
"Set the texture unit to assign layer to if required. ",
"Negative values signifies that no texture unit has been assigned. ");
I_Method0(int, getTextureUnit,
Properties::NON_VIRTUAL,
__int__getTextureUnit,
"Get the texture unit to assign layer to if required. ",
"");
I_Method0(osg::Image *, getImage,
Properties::NON_VIRTUAL,
__osg_Image_P1__getImage,
@@ -79,9 +69,6 @@ BEGIN_OBJECT_REFLECTOR(osg::TransferFunction)
I_SimpleProperty(osg::Texture *, Texture,
__osg_Texture_P1__getTexture,
0);
I_SimpleProperty(int, TextureUnit,
__int__getTextureUnit,
__void__setTextureUnit__int);
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osg::TransferFunction1D)