bool FBOViewport::isFullWindow(void) const
{
    if(getFrameBufferObject() == NULL)
        return true;

    return  
        getPixelBottom() == 0 &&
        getPixelLeft()   == 0 &&
        getPixelTop()    == getFrameBufferObject()->getHeight() - 1 &&
        getPixelRight()  == getFrameBufferObject()->getWidth () - 1;
}
Exemplo n.º 2
0
bool StagedViewport::isFullWindow(void) const
{
    if(getFrameBufferObject() == NULL)
        return Viewport::calcIsFullWindow();
    else
        return  
            getPixelBottom() == 0 &&
            getPixelLeft()   == 0 &&
            getPixelTop()    == getFrameBufferObject()->getHeight() - 1 &&
            getPixelRight()  == getFrameBufferObject()->getWidth () - 1;
}