From e68e474c905c910b9152c66fad863c16f8158e93 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 28 May 2008 11:58:46 +0000 Subject: [PATCH] Updated wrappers --- src/osgWrappers/osg/Texture.cpp | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/osgWrappers/osg/Texture.cpp b/src/osgWrappers/osg/Texture.cpp index 7cf1d9f4a..2d0f3e5ca 100644 --- a/src/osgWrappers/osg/Texture.cpp +++ b/src/osgWrappers/osg/Texture.cpp @@ -513,11 +513,29 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture) __void__applyTexParameters__GLenum__State_R1, "Helper method. ", "Sets texture parameters. "); + I_ProtectedMethod1(bool, isHardwareMipmapGenerationEnabled, IN, const osg::State &, state, + Properties::NON_VIRTUAL, + Properties::CONST, + __bool__isHardwareMipmapGenerationEnabled__C5_State_R1, + "Returns true if _useHardwareMipMapGeneration is true and either glGenerateMipmapEXT() or GL_GENERATE_MIPMAP_SGIS are supported. ", + ""); + I_ProtectedMethod2(GenerateMipmapMode, mipmapBeforeTexImage, IN, const osg::State &, state, IN, bool, hardwareMipmapOn, + Properties::NON_VIRTUAL, + Properties::CONST, + __GenerateMipmapMode__mipmapBeforeTexImage__C5_State_R1__bool, + "Helper methods to be called before and after calling gl[Compressed][Copy]Tex[Sub]Image2D to handle generating mipmaps. ", + ""); + I_ProtectedMethod2(void, mipmapAfterTexImage, IN, osg::State &, state, IN, GenerateMipmapMode, beforeResult, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__mipmapAfterTexImage__State_R1__GenerateMipmapMode, + "", + ""); I_ProtectedMethod1(void, generateMipmap, IN, osg::State &, state, Properties::NON_VIRTUAL, Properties::CONST, __void__generateMipmap__State_R1, - "Helper method to generate empty mipmap levels by calling of glGenerateMipmapEXT. ", + "Helper method to generate mipmap levels by calling of glGenerateMipmapEXT. ", "If it is not supported, then call the virtual allocateMipmap() method "); I_ProtectedMethod1(void, allocateMipmap, IN, osg::State &, state, Properties::PURE_VIRTUAL,