本文整理汇总了C++中FrameBufferObject::resizeAll方法的典型用法代码示例。如果您正苦于以下问题:C++ FrameBufferObject::resizeAll方法的具体用法?C++ FrameBufferObject::resizeAll怎么用?C++ FrameBufferObject::resizeAll使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FrameBufferObject
的用法示例。
在下文中一共展示了FrameBufferObject::resizeAll方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: resizeStageData
void DepthPeelingStage::resizeStageData(DepthPeelingStageData *pData,
Int32 iPixelWidth,
Int32 iPixelHeight)
{
FrameBufferObject *pSceneFBO = pData->getBlendFBO();
pSceneFBO->resizeAll(iPixelWidth, iPixelHeight);
FrameBufferObject *pPeelPingFBO = pData->getPeelPingFBO();
pPeelPingFBO->resizeAll(iPixelWidth, iPixelHeight);
FrameBufferObject *pPeelPongFBO = pData->getPeelPongFBO();
pPeelPongFBO->resizeAll(iPixelWidth, iPixelHeight);
commitChanges();
}
示例2: resizeStageData
void HDRStage::resizeStageData(HDRStageData *pData,
Int32 iPixelWidth,
Int32 iPixelHeight)
{
FrameBufferObject *pSceneFBO = this->getRenderTarget();
pSceneFBO->resizeAll(iPixelWidth, iPixelHeight);
FrameBufferObject *pShrinkFBO = pData->getShrinkRenderTarget();
pShrinkFBO->resizeAll(iPixelWidth / 2, iPixelHeight / 2);
FrameBufferObject *pBlurFBO = pData->getBlurRenderTarget();
pBlurFBO->resizeAll(iPixelWidth / 4,
iPixelHeight / 4);
SimpleSHLChunk *pHBlurShader = pData->getHBlurShader();
std::string szNewFragProg =
generate1DConvolutionFilterFPString(getBlurWidth(),
false,
true,
iPixelWidth / 2,
iPixelHeight / 2);
pHBlurShader->setFragmentProgram(szNewFragProg);
szNewFragProg = generate1DConvolutionFilterFPString(getBlurWidth(),
true,
true,
iPixelWidth / 2,
iPixelHeight / 2);
SimpleSHLChunkUnrecPtr pVBlurShader = pData->getVBlurShader();
pVBlurShader->setFragmentProgram(szNewFragProg);
commitChanges();
}