texture.cpp

来自「最新osg包」· C++ 代码 · 共 1,038 行 · 第 1/4 页

CPP
1,038
字号
	          __bool__getClientStorageHint,	          "Gets whether to use client storage for the texture. ",	          "");	I_Method1(void, setResizeNonPowerOfTwoHint, IN, bool, flag,	          Properties::NON_VIRTUAL,	          __void__setResizeNonPowerOfTwoHint__bool,	          "Sets whether to force the texture to resize images that have dimensions that are not a power of two. ",	          "If enabled, NPOT images will be resized, whether or not NPOT textures are supported by the hardware. If disabled, NPOT images will not be resized if supported by hardware. ");	I_Method0(bool, getResizeNonPowerOfTwoHint,	          Properties::NON_VIRTUAL,	          __bool__getResizeNonPowerOfTwoHint,	          "Gets whether texture will force non power to two images to be resized. ",	          "");	I_Method1(void, setInternalFormatMode, IN, osg::Texture::InternalFormatMode, mode,	          Properties::NON_VIRTUAL,	          __void__setInternalFormatMode__InternalFormatMode,	          "Sets the internal texture format mode. ",	          "Note: If the texture format is USE_IMAGE_DATA_FORMAT, USE_ARB_COMPRESSION, or USE_S3TC_COMPRESSION, the internal format mode is set automatically and will overwrite the previous _internalFormat. ");	I_Method0(osg::Texture::InternalFormatMode, getInternalFormatMode,	          Properties::NON_VIRTUAL,	          __InternalFormatMode__getInternalFormatMode,	          "Gets the internal texture format mode. ",	          "");	I_Method1(void, setInternalFormat, IN, GLint, internalFormat,	          Properties::NON_VIRTUAL,	          __void__setInternalFormat__GLint,	          "Sets the internal texture format. ",	          "Implicitly sets the internalFormatMode to USE_USER_DEFINED_FORMAT. The corresponding internal format type will be computed. ");	I_Method0(GLint, getInternalFormat,	          Properties::NON_VIRTUAL,	          __GLint__getInternalFormat,	          "Gets the internal texture format. ",	          "");	I_Method0(bool, isCompressedInternalFormat,	          Properties::NON_VIRTUAL,	          __bool__isCompressedInternalFormat,	          "Return true if the internal format is one of the compressed formats. ",	          "");	I_Method1(void, setSourceFormat, IN, GLenum, sourceFormat,	          Properties::NON_VIRTUAL,	          __void__setSourceFormat__GLenum,	          "Sets the external source image format, used as a fallback when no osg::Image is attached to provide the source image format. ",	          "");	I_Method0(GLenum, getSourceFormat,	          Properties::NON_VIRTUAL,	          __GLenum__getSourceFormat,	          "Gets the external source image format. ",	          "");	I_Method1(void, setSourceType, IN, GLenum, sourceType,	          Properties::NON_VIRTUAL,	          __void__setSourceType__GLenum,	          "Sets the external source data type, used as a fallback when no osg::Image is attached to provide the source image format. ",	          "");	I_Method0(GLenum, getSourceType,	          Properties::NON_VIRTUAL,	          __GLenum__getSourceType,	          "Gets the external source data type. ",	          "");	I_Method0(osg::Texture::InternalFormatType, getInternalFormatType,	          Properties::NON_VIRTUAL,	          __InternalFormatType__getInternalFormatType,	          "Get the internal texture format type. ",	          "");	I_Method1(osg::Texture::TextureObject *, getTextureObject, IN, unsigned int, contextID,	          Properties::NON_VIRTUAL,	          __TextureObject_P1__getTextureObject__unsigned_int,	          "Returns a pointer to the texture object for the current context. ",	          "");	I_Method0(void, dirtyTextureObject,	          Properties::NON_VIRTUAL,	          __void__dirtyTextureObject,	          "Forces a recompile on next apply() of associated OpenGL texture objects. ",	          "");	I_Method0(bool, areAllTextureObjectsLoaded,	          Properties::NON_VIRTUAL,	          __bool__areAllTextureObjectsLoaded,	          "Returns true if the texture objects for all the required graphics contexts are loaded. ",	          "");	I_Method1(unsigned int &, getTextureParameterDirty, IN, unsigned int, contextID,	          Properties::NON_VIRTUAL,	          __unsigned_int_R1__getTextureParameterDirty__unsigned_int,	          "Gets the dirty flag for the current contextID. ",	          "");	I_Method0(void, dirtyTextureParameters,	          Properties::NON_VIRTUAL,	          __void__dirtyTextureParameters,	          "Force a reset on next apply() of associated OpenGL texture parameters. ",	          "");	I_Method0(void, allocateMipmapLevels,	          Properties::NON_VIRTUAL,	          __void__allocateMipmapLevels,	          "Force a manual allocation of the mipmap levels on the next apply() call. ",	          "User is responsible for filling the mipmap levels with valid data. The OpenGL's glGenerateMipmapEXT function is used to generate the mipmap levels. If glGenerateMipmapEXT is not supported or texture's internal format is not supported by the glGenerateMipmapEXT, then empty mipmap levels will be allocated manually. The mipmap levels are also allocated if a non-mipmapped min filter is used. ");	I_Method1(void, setShadowComparison, IN, bool, flag,	          Properties::NON_VIRTUAL,	          __void__setShadowComparison__bool,	          "Sets GL_TEXTURE_COMPARE_MODE_ARB to GL_COMPARE_R_TO_TEXTURE_ARB See http://oss.sgi.com/projects/ogl-sample/registry/ARB/shadow.txt. ",	          "");	I_Method1(void, setShadowCompareFunc, IN, osg::Texture::ShadowCompareFunc, func,	          Properties::NON_VIRTUAL,	          __void__setShadowCompareFunc__ShadowCompareFunc,	          "Sets shadow texture comparison function. ",	          "");	I_Method0(osg::Texture::ShadowCompareFunc, getShadowCompareFunc,	          Properties::NON_VIRTUAL,	          __ShadowCompareFunc__getShadowCompareFunc,	          "",	          "");	I_Method1(void, setShadowTextureMode, IN, osg::Texture::ShadowTextureMode, mode,	          Properties::NON_VIRTUAL,	          __void__setShadowTextureMode__ShadowTextureMode,	          "Sets shadow texture mode after comparison. ",	          "");	I_Method0(osg::Texture::ShadowTextureMode, getShadowTextureMode,	          Properties::NON_VIRTUAL,	          __ShadowTextureMode__getShadowTextureMode,	          "",	          "");	I_Method1(void, setShadowAmbient, IN, float, shadow_ambient,	          Properties::NON_VIRTUAL,	          __void__setShadowAmbient__float,	          "Sets the TEXTURE_COMPARE_FAIL_VALUE_ARB texture parameter. ",	          "See http://oss.sgi.com/projects/ogl-sample/registry/ARB/shadow_ambient.txt. ");	I_Method0(float, getShadowAmbient,	          Properties::NON_VIRTUAL,	          __float__getShadowAmbient,	          "",	          "");	I_Method2(void, setImage, IN, unsigned int, face, IN, osg::Image *, image,	          Properties::PURE_VIRTUAL,	          __void__setImage__unsigned_int__Image_P1,	          "Sets the texture image for the specified face. ",	          "");	I_Method1(osg::Image *, getImage, IN, unsigned int, face,	          Properties::PURE_VIRTUAL,	          __Image_P1__getImage__unsigned_int,	          "Gets the texture image for the specified face. ",	          "");	I_Method1(const osg::Image *, getImage, IN, unsigned int, face,	          Properties::PURE_VIRTUAL,	          __C5_Image_P1__getImage__unsigned_int,	          "Gets the const texture image for specified face. ",	          "");	I_Method0(unsigned int, getNumImages,	          Properties::PURE_VIRTUAL,	          __unsigned_int__getNumImages,	          "Gets the number of images that can be assigned to this Texture. ",	          "");	I_Method1(void, setReadPBuffer, IN, osg::GraphicsContext *, context,	          Properties::NON_VIRTUAL,	          __void__setReadPBuffer__GraphicsContext_P1,	          "Set the PBuffer graphics context to read from when using PBuffers for RenderToTexture. ",	          "");	I_Method0(osg::GraphicsContext *, getReadPBuffer,	          Properties::NON_VIRTUAL,	          __GraphicsContext_P1__getReadPBuffer,	          "Get the PBuffer graphics context to read from when using PBuffers for RenderToTexture. ",	          "");	I_Method0(const osg::GraphicsContext *, getReadPBuffer,	          Properties::NON_VIRTUAL,	          __C5_GraphicsContext_P1__getReadPBuffer,	          "Get the const PBuffer graphics context to read from when using PBuffers for RenderToTexture. ",	          "");	I_Method1(void, apply, IN, osg::State &, state,	          Properties::PURE_VIRTUAL,	          __void__apply__State_R1,	          "Texture is a pure virtual base class, apply must be overridden. ",	          "");	I_Method1(void, compileGLObjects, IN, osg::State &, state,	          Properties::VIRTUAL,	          __void__compileGLObjects__State_R1,	          "Calls apply(state) to compile the texture. ",	          "");	I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize,	          Properties::VIRTUAL,	          __void__resizeGLObjectBuffers__unsigned_int,	          "Resize any per context GLObject buffers to specified size. ",	          "");	I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0,	                      Properties::VIRTUAL,	                      __void__releaseGLObjects__State_P1,	                      "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ",	                      "Otherwise, releases OpenGL objects for all graphics contexts. ");	I_Method6(void, applyTexImage2D_load, IN, osg::State &, state, IN, GLenum, target, IN, const osg::Image *, image, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, numMipmapLevels,	          Properties::NON_VIRTUAL,	          __void__applyTexImage2D_load__State_R1__GLenum__C5_Image_P1__GLsizei__GLsizei__GLsizei,	          "Helper method. ",	          "Creates the texture, but doesn't set or use a texture binding. Note: Don't call this method directly unless you're implementing a subload callback. ");	I_Method7(void, applyTexImage2D_subload, IN, osg::State &, state, IN, GLenum, target, IN, const osg::Image *, image, IN, GLsizei, width, IN, GLsizei, height, IN, GLint, inInternalFormat, IN, GLsizei, numMipmapLevels,	          Properties::NON_VIRTUAL,	          __void__applyTexImage2D_subload__State_R1__GLenum__C5_Image_P1__GLsizei__GLsizei__GLint__GLsizei,	          "Helper method. ",	          "Subloads images into the texture, but doesn't set or use a texture binding. Note: Don't call this method directly unless you're implementing a subload callback. ");	I_Method1(void, takeTextureObjects, IN, osg::Texture::TextureObjectListMap &, toblm,	          Properties::NON_VIRTUAL,	          __void__takeTextureObjects__TextureObjectListMap_R1,	          "Takes the active texture objects from the Texture and places them in the specified TextureObjectListMap. ",	          "");	I_StaticMethod2(osg::Texture::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized,	                __Extensions_P1__getExtensions__unsigned_int__bool_S,	                "Gets the extension for the specified context. ",	                "Creates the Extensions object for that context if it doesn't exist. Returns NULL if the Extensions object for the context doesn't exist and the createIfNotInitalized flag is false. ");	I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::Texture::Extensions *, extensions,	                __void__setExtensions__unsigned_int__Extensions_P1_S,	                "Overrides Extensions objects across graphics contexts. ",	                "Typically used to ensure the same lowest common denominator of extensions on systems with different graphics pipes. ");	I_StaticMethod1(bool, isCompressedInternalFormat, IN, GLint, internalFormat,	                __bool__isCompressedInternalFormat__GLint_S,	                "Determine whether the given internalFormat is a compressed image format. ",	                "");	I_StaticMethod6(void, getCompressedSize, IN, GLenum, internalFormat, IN, GLint, width, IN, GLint, height, IN, GLint, depth, IN, GLint &, blockSize, IN, GLint &, size,	                __void__getCompressedSize__GLenum__GLint__GLint__GLint__GLint_R1__GLint_R1_S,	                "Determine the size of a compressed image, given the internalFormat, the width, the height, and the depth of the image. ",	                "The block size and the size are output parameters. ");	I_StaticMethod2(osg::Texture::TextureObject *, generateTextureObject, IN, unsigned int, contextID, IN, GLenum, target,	                __TextureObject_P1__generateTextureObject__unsigned_int__GLenum_S,	                "",	                "");	I_StaticMethod8(osg::Texture::TextureObject *, generateTextureObject, IN, unsigned int, contextID, IN, GLenum, target, IN, GLint, numMipmapLevels, IN, GLenum, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border,	                __TextureObject_P1__generateTextureObject__unsigned_int__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint_S,	                "",	                "");	I_StaticMethod1(void, setMinimumNumberOfTextureObjectsToRetainInCache, IN, unsigned int, minimum,	                __void__setMinimumNumberOfTextureObjectsToRetainInCache__unsigned_int_S,	                "Set the minimum number of texture objects to retain in the deleted display list cache. ",	                "");	I_StaticMethod0(unsigned int, getMinimumNumberOfTextureObjectsToRetainInCache,	                __unsigned_int__getMinimumNumberOfTextureObjectsToRetainInCache_S,	                "Get the minimum number of display lists to retain in the deleted display list cache. ",	                "");	I_StaticMethod1(void, flushAllDeletedTextureObjects, IN, unsigned int, contextID,	                __void__flushAllDeletedTextureObjects__unsigned_int_S,	                "",	                "");	I_StaticMethod1(void, discardAllDeletedTextureObjects, IN, unsigned int, contextID,	                __void__discardAllDeletedTextureObjects__unsigned_int_S,	                "",	                "");	I_StaticMethod3(void, flushDeletedTextureObjects, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime,	                __void__flushDeletedTextureObjects__unsigned_int__double__double_R1_S,	                "",	                "");	I_ProtectedMethod0(void, computeInternalFormat,	                   Properties::PURE_VIRTUAL,	                   Properties::CONST,	                   __void__computeInternalFormat,	                   "",	                   "");	I_ProtectedMethod1(void, computeInternalFormatWithImage, IN, const osg::Image &, image,	                   Properties::NON_VIRTUAL,	                   Properties::CONST,	                   __void__computeInternalFormatWithImage__C5_osg_Image_R1,	                   "",	                   "");	I_ProtectedMethod5(void, computeRequiredTextureDimensions, IN, osg::State &, state, IN, const osg::Image &, image, IN, GLsizei &, width, IN, GLsizei &, height, IN, GLsizei &, numMipmapLevels,	                   Properties::NON_VIRTUAL,	                   Properties::CONST,	                   __void__computeRequiredTextureDimensions__State_R1__C5_osg_Image_R1__GLsizei_R1__GLsizei_R1__GLsizei_R1,	                   "",	                   "");

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?