Esempio n. 1
0
void PostShaderStage::initData(RenderAction *pAction)
{
    PostShaderStageDataUnrecPtr pData = NULL;

    pData = setupStageData(pAction->getActivePartition()->getViewportWidth (),
                           pAction->getActivePartition()->getViewportHeight());
        
    pData->setWidth (pAction->getActivePartition()->getViewportWidth ());
    pData->setHeight(pAction->getActivePartition()->getViewportHeight());

    this->setData(pData, _iDataSlotId, pAction);
}
Esempio n. 2
0
void PostShaderStage::initData(Viewport         *pViewport,
                               RenderActionBase *pAction  )
{
    PostShaderStageDataUnrecPtr pData;// = pAction->getData<PostShaderStageData *>(_iDataSlotId);

    //if(pData == NULL)
    //{
        pData = setupStageData(pViewport->getPixelWidth(),
                               pViewport->getPixelHeight());
        
        pData->setWidth (pViewport->getPixelWidth ());
        pData->setHeight(pViewport->getPixelHeight());

        this->setData(pData, _iDataSlotId, pAction);
    //}
}