Advertisement

osgEarth Rex引擎原理分析(一一零)状态中的defineMap构建过程

阅读量:

目标:(一零九)中的问题195

在绘制流程中,每当经过一个状态集合StateSet时,该集合中的模式、属性、一致性变量以及定义都会被依次存入State对应的变量中,并且所有定义信息均会被置入_defineMap内。

复制代码
 osg/State.cpp

    
 void State::pushStateSet(const StateSet* dstate)
    
 {
    
     pushModeList(_modeMap,dstate->getModeList());
    
     pushAttributeList(_attributeMap,dstate->getAttributeList());
    
     pushUniformList(_uniformMap,dstate->getUniformList());
    
     pushDefineList(_defineMap,dstate->getDefineList());
    
 }
    
    
    
    

_defineMap的生成步骤具体如下:

复制代码
 osg/State.cpp

    
 inline void State::pushDefineList(DefineMap& defineMap,const StateSet::D

全部评论 (0)

还没有任何评论哟~