1、_textureAttributeList
所有setTextureAttributeAndModes操作的纹理属性都会存放在_textureAttributeList里。
osg/StateSet
typedef std::pair<Type,unsigned int> TypeMemberPair;
typedef std::pair<ref_ptr<StateAttribute>,StateAttribute::OverrideValue> RefAttributePair;
typedef std::map<StateAttribute::TypeMemberPair,RefAttributePair> AttributeList;
typedef std::vector<AttributeList> TextureAttributeList;
TextureAttributeList _textureAttributeList;
osg/StateSet
typedef unsigned int GLModeValue;
typedef GLenum GLMode;
typedef std::map<StateAttribute::GLMode,StateAttribute::GLModeValue> ModeList;
typedef std::vector<ModeList> TextureModeList;
TextureModeList _textureModeList;
本文深入解析了OSG(StateSet)中纹理属性(TextureAttributeList)与模式(TextureModeList)的数据结构。详细介绍了TypeMemberPair、RefAttributePair、AttributeList、TextureAttributeList、GLModeValue、GLMode和ModeList等关键概念,为理解OSG如何管理纹理状态提供核心信息。
stateset中的_textureAttributeList、_textureModeList&spm=1001.2101.3001.5002&articleId=106309743&d=1&t=3&u=63411cc8f3854c0e987077bd78011190)
925

被折叠的 条评论
为什么被折叠?



