Updated wrappers

This commit is contained in:
Robert Osfield
2010-03-16 18:53:42 +00:00
parent d5aea9c0f2
commit afd2c05f6d
2 changed files with 14 additions and 0 deletions

View File

@@ -90,6 +90,16 @@ BEGIN_OBJECT_REFLECTOR(osgTerrain::Terrain)
__float__getVerticalScale,
"Get the vertical scale hint. ",
"");
I_Method1(void, setBlendingPolicy, IN, osgTerrain::TerrainTile::BlendingPolicy, policy,
Properties::NON_VIRTUAL,
__void__setBlendingPolicy__TerrainTile_BlendingPolicy,
"Set the default policy to use when deciding whether to enable/disable blending and use of transparent bin. ",
"Note, the Terrain::BlendingPolicy value only sets the value for the TerrainTiles it encloses for the TerrainTile's that have their policy set to INHERIT. INHERIT is the default BlendingPolicy for both Terrain and TerrainTile, and if both are left to INERHIT then the policy used is ENABLE_BLENDING_WHEN_ALPHA_PRESENT. ");
I_Method0(osgTerrain::TerrainTile::BlendingPolicy, getBlendingPolicy,
Properties::NON_VIRTUAL,
__TerrainTile_BlendingPolicy__getBlendingPolicy,
"Get the default policy to use when deciding whether to enable/disable blending and use of transparent bin. ",
"");
I_Method1(osgTerrain::TerrainTile *, getTile, IN, const osgTerrain::TileID &, tileID,
Properties::NON_VIRTUAL,
__TerrainTile_P1__getTile__C5_TileID_R1,
@@ -133,6 +143,9 @@ BEGIN_OBJECT_REFLECTOR(osgTerrain::Terrain)
__void__unregisterTerrainTile__TerrainTile_P1,
"",
"");
I_SimpleProperty(osgTerrain::TerrainTile::BlendingPolicy, BlendingPolicy,
__TerrainTile_BlendingPolicy__getBlendingPolicy,
__void__setBlendingPolicy__TerrainTile_BlendingPolicy);
I_SimpleProperty(float, SampleRatio,
__float__getSampleRatio,
__void__setSampleRatio__float);

View File

@@ -32,6 +32,7 @@
BEGIN_ENUM_REFLECTOR(osgTerrain::TerrainTile::BlendingPolicy)
I_DeclaringFile("osgTerrain/TerrainTile");
I_EnumLabel(osgTerrain::TerrainTile::INHERIT);
I_EnumLabel(osgTerrain::TerrainTile::DO_NOT_SET_BLENDING);
I_EnumLabel(osgTerrain::TerrainTile::ENABLE_BLENDING);
I_EnumLabel(osgTerrain::TerrainTile::ENABLE_BLENDING_WHEN_ALPHA_PRESENT);