Advertisement

OSG 学习内容 osg::State 的 AttributeMap 功能

阅读量:

对当前状态机所涉及的所有StateAttribute进行记录,例如包括着色器、视口等相关参数。

复制代码
 osg/State

    
 class OSG_EXPORT State : public Referenced
    
 {
    
     typedef std::pair<const StateAttribute*,StateAttribute::OverrideValue>  AttributePair;
    
     typedef std::vector<AttributePair>                                      AttributeVec;
    
     struct AttributeStack
    
     {
    
         AttributeStack()
    
         {
    
             changed = false;
    
             last_applied_attribute = 0L;
    
             last_applied_shadercomponent = 0L;
    
             global_default_attribute = 0L;
    
  

全部评论 (0)

还没有任何评论哟~