texture.cpp
来自「最新osg包」· C++ 代码 · 共 1,038 行 · 第 1/4 页
CPP
1,038 行
// ***************************************************************************//// Generated automatically by genwrapper.// Please DO NOT EDIT this file!//// ***************************************************************************#include <osgIntrospection/ReflectionMacros>#include <osgIntrospection/TypedMethodInfo>#include <osgIntrospection/StaticMethodInfo>#include <osgIntrospection/Attributes>#include <osg/CopyOp>#include <osg/GraphicsContext>#include <osg/Image>#include <osg/Object>#include <osg/State>#include <osg/StateAttribute>#include <osg/Texture>#include <osg/Vec4d>// Must undefine IN and OUT macros defined in Windows headers#ifdef IN#undef IN#endif#ifdef OUT#undef OUT#endifTYPE_NAME_ALIAS(std::list< osg::ref_ptr< osg::Texture::TextureObject > >, osg::Texture::TextureObjectList)TYPE_NAME_ALIAS(osg::buffered_object< osg::Texture::TextureObjectList >, osg::Texture::TextureObjectListMap)BEGIN_ENUM_REFLECTOR(osg::Texture::WrapParameter) I_DeclaringFile("osg/Texture"); I_EnumLabel(osg::Texture::WRAP_S); I_EnumLabel(osg::Texture::WRAP_T); I_EnumLabel(osg::Texture::WRAP_R);END_REFLECTORBEGIN_ENUM_REFLECTOR(osg::Texture::WrapMode) I_DeclaringFile("osg/Texture"); I_EnumLabel(osg::Texture::CLAMP); I_EnumLabel(osg::Texture::CLAMP_TO_EDGE); I_EnumLabel(osg::Texture::CLAMP_TO_BORDER); I_EnumLabel(osg::Texture::REPEAT); I_EnumLabel(osg::Texture::MIRROR);END_REFLECTORBEGIN_ENUM_REFLECTOR(osg::Texture::FilterParameter) I_DeclaringFile("osg/Texture"); I_EnumLabel(osg::Texture::MIN_FILTER); I_EnumLabel(osg::Texture::MAG_FILTER);END_REFLECTORBEGIN_ENUM_REFLECTOR(osg::Texture::FilterMode) I_DeclaringFile("osg/Texture"); I_EnumLabel(osg::Texture::LINEAR); I_EnumLabel(osg::Texture::LINEAR_MIPMAP_LINEAR); I_EnumLabel(osg::Texture::LINEAR_MIPMAP_NEAREST); I_EnumLabel(osg::Texture::NEAREST); I_EnumLabel(osg::Texture::NEAREST_MIPMAP_LINEAR); I_EnumLabel(osg::Texture::NEAREST_MIPMAP_NEAREST);END_REFLECTORBEGIN_ENUM_REFLECTOR(osg::Texture::InternalFormatMode) I_DeclaringFile("osg/Texture"); I_EnumLabel(osg::Texture::USE_IMAGE_DATA_FORMAT); I_EnumLabel(osg::Texture::USE_USER_DEFINED_FORMAT); I_EnumLabel(osg::Texture::USE_ARB_COMPRESSION); I_EnumLabel(osg::Texture::USE_S3TC_DXT1_COMPRESSION); I_EnumLabel(osg::Texture::USE_S3TC_DXT3_COMPRESSION); I_EnumLabel(osg::Texture::USE_S3TC_DXT5_COMPRESSION);END_REFLECTORBEGIN_ENUM_REFLECTOR(osg::Texture::InternalFormatType) I_DeclaringFile("osg/Texture"); I_EnumLabel(osg::Texture::NORMALIZED); I_EnumLabel(osg::Texture::FLOAT); I_EnumLabel(osg::Texture::SIGNED_INTEGER); I_EnumLabel(osg::Texture::UNSIGNED_INTEGER);END_REFLECTORBEGIN_ENUM_REFLECTOR(osg::Texture::ShadowCompareFunc) I_DeclaringFile("osg/Texture"); I_EnumLabel(osg::Texture::LEQUAL); I_EnumLabel(osg::Texture::GEQUAL);END_REFLECTORBEGIN_ENUM_REFLECTOR(osg::Texture::ShadowTextureMode) I_DeclaringFile("osg/Texture"); I_EnumLabel(osg::Texture::LUMINANCE); I_EnumLabel(osg::Texture::INTENSITY); I_EnumLabel(osg::Texture::ALPHA);END_REFLECTORBEGIN_ENUM_REFLECTOR(osg::Texture::GenerateMipmapMode) I_DeclaringFile("osg/Texture"); I_EnumLabel(osg::Texture::GENERATE_MIPMAP_NONE); I_EnumLabel(osg::Texture::GENERATE_MIPMAP); I_EnumLabel(osg::Texture::GENERATE_MIPMAP_TEX_PARAMETER);END_REFLECTORBEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture) I_DeclaringFile("osg/Texture"); I_BaseType(osg::StateAttribute); I_Constructor0(____Texture, "", ""); I_ConstructorWithDefaults2(IN, const osg::Texture &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, ____Texture__C5_Texture_R1__C5_CopyOp_R1, "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, Properties::PURE_VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::PURE_VIRTUAL, __osg_Object_P1__clone__C5_CopyOp_R1, "Clone an attribute, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::Texture *, asTexture, Properties::VIRTUAL, __Texture_P1__asTexture, "Fast alternative to dynamic_cast<> for determining if state attribute is a Texture. ", ""); I_Method0(const osg::Texture *, asTexture, Properties::VIRTUAL, __C5_Texture_P1__asTexture, "Fast alternative to dynamic_cast<> for determining if state attribute is a Texture. ", ""); I_Method0(osg::StateAttribute::Type, getType, Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method0(bool, isTextureAttribute, Properties::VIRTUAL, __bool__isTextureAttribute, "Return true if StateAttribute is a type which controls texturing and needs to be issued w.r.t to specific texture unit. ", ""); I_Method0(GLenum, getTextureTarget, Properties::PURE_VIRTUAL, __GLenum__getTextureTarget, "", ""); I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, Properties::VIRTUAL, __bool__getModeUsage__StateAttribute_ModeUsage_R1, "Return the modes associated with this StateAttribute. ", ""); I_Method0(int, getTextureWidth, Properties::VIRTUAL, __int__getTextureWidth, "", ""); I_Method0(int, getTextureHeight, Properties::VIRTUAL, __int__getTextureHeight, "", ""); I_Method0(int, getTextureDepth, Properties::VIRTUAL, __int__getTextureDepth, "", ""); I_Method2(void, setWrap, IN, osg::Texture::WrapParameter, which, IN, osg::Texture::WrapMode, wrap, Properties::NON_VIRTUAL, __void__setWrap__WrapParameter__WrapMode, "Sets the texture wrap mode. ", ""); I_Method1(osg::Texture::WrapMode, getWrap, IN, osg::Texture::WrapParameter, which, Properties::NON_VIRTUAL, __WrapMode__getWrap__WrapParameter, "Gets the texture wrap mode. ", ""); I_Method1(void, setBorderColor, IN, const osg::Vec4d &, color, Properties::NON_VIRTUAL, __void__setBorderColor__C5_Vec4d_R1, "Sets the border color. ", "Only used when wrap mode is CLAMP_TO_BORDER. The border color will be casted to the appropriate type to match the internal pixel format of the texture. "); I_Method0(const osg::Vec4d &, getBorderColor, Properties::NON_VIRTUAL, __C5_Vec4d_R1__getBorderColor, "Gets the border color. ", ""); I_Method1(void, setBorderWidth, IN, GLint, width, Properties::NON_VIRTUAL, __void__setBorderWidth__GLint, "Sets the border width. ", ""); I_Method0(GLint, getBorderWidth, Properties::NON_VIRTUAL, __GLint__getBorderWidth, "", ""); I_Method2(void, setFilter, IN, osg::Texture::FilterParameter, which, IN, osg::Texture::FilterMode, filter, Properties::NON_VIRTUAL, __void__setFilter__FilterParameter__FilterMode, "Sets the texture filter mode. ", ""); I_Method1(osg::Texture::FilterMode, getFilter, IN, osg::Texture::FilterParameter, which, Properties::NON_VIRTUAL, __FilterMode__getFilter__FilterParameter, "Gets the texture filter mode. ", ""); I_Method1(void, setMaxAnisotropy, IN, float, anis, Properties::NON_VIRTUAL, __void__setMaxAnisotropy__float, "Sets the maximum anisotropy value, default value is 1.0 for no anisotropic filtering. ", "If hardware does not support anisotropic filtering, use normal filtering (equivalent to a max anisotropy value of 1.0. Valid range is 1.0f upwards. The maximum value depends on the graphics system. "); I_Method0(float, getMaxAnisotropy, Properties::NON_VIRTUAL, __float__getMaxAnisotropy, "Gets the maximum anisotropy value. ", ""); I_Method1(void, setUseHardwareMipMapGeneration, IN, bool, useHardwareMipMapGeneration, Properties::NON_VIRTUAL, __void__setUseHardwareMipMapGeneration__bool, "Sets the hardware mipmap generation hint. ", "If enabled, it will only be used if supported in the graphics system. "); I_Method0(bool, getUseHardwareMipMapGeneration, Properties::NON_VIRTUAL, __bool__getUseHardwareMipMapGeneration, "Gets the hardware mipmap generation hint. ", ""); I_Method1(void, setUnRefImageDataAfterApply, IN, bool, flag, Properties::NON_VIRTUAL, __void__setUnRefImageDataAfterApply__bool, "Sets whether or not the apply() function will unreference the image data. ", "If enabled, and the image data is only referenced by this Texture, apply() will delete the image data. "); I_Method0(bool, getUnRefImageDataAfterApply, Properties::NON_VIRTUAL, __bool__getUnRefImageDataAfterApply, "Gets whether or not apply() unreferences image data. ", ""); I_Method1(void, setClientStorageHint, IN, bool, flag, Properties::NON_VIRTUAL, __void__setClientStorageHint__bool, "Sets whether to use client storage for the texture, if supported by the graphics system. ", "Note: If enabled, and the graphics system supports it, the osg::Image(s) associated with this texture cannot be deleted, so the UnRefImageDataAfterApply flag would be ignored. "); I_Method0(bool, getClientStorageHint, Properties::NON_VIRTUAL,
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?