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如何管理纹理状态提供核心信息。
766

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



