bool insert( SurfaceRect& r ); bool isValidLocation( const SurfaceRect& r ) const;
};
typedef std::shared_ptr< Page > PageSharedPtr;
/** A part of a page, which gets allocated to a surface
*/ class PageFragment
{ public:
PageFragment( const SurfaceRect& r,
Page* pPage ) :
mpPage(pPage),
maRect(r),
mpBuffer(),
maSourceOffset()
{
}
bool select( bool bRefresh )
{ // request was made to select this fragment, // but this fragment has not been located on any // of the available pages, we need to hurry now. if(!mpPage) returnfalse;
// select this surface before wiping the contents // since a specific implementation could trigger // a rendering operation here... if(!(pSurface->selectTexture())) returnfalse;
// call refresh() if requested, otherwise we're up to date... return !bRefresh || refresh();
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.