Removed log2 and replaced the places where is was used with a new Image::computeNumberOfMipmapLevels method.

This commit is contained in:
Robert Osfield
2007-10-01 08:50:58 +00:00
parent 69eddaa7bb
commit 7086aeeebc
9 changed files with 17 additions and 10 deletions

View File

@@ -357,6 +357,10 @@ BEGIN_OBJECT_REFLECTOR(osg::Image)
__int__computeNearestPowerOfTwo__int__float_S,
"",
"");
I_StaticMethodWithDefaults3(int, computeNumberOfMipmapLevels, IN, int, s, , IN, int, t, 1, IN, int, r, 1,
__int__computeNumberOfMipmapLevels__int__int__int_S,
"",
"");
I_ProtectedMethod0(void, deallocateData,
Properties::NON_VIRTUAL,
Properties::NON_CONST,