How can I create a backbuffer more large of 320x240?
I want a Display object with a backbuffer of 480x360.
thanks
I want a Display object with a backbuffer of 480x360.
thanks
A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.
Display *pDisplay=GetDisplay();
int x=80, y=60;
Surface *pTempBB = pDisplay->CreateSurface(480, 360);
pDisplay->SetRenderTarget(pTempBB);
...
drawing code here
...
pDisplay->SetRenderTarget(0);
pDisplay->Blit(0,0,pTempBB,&Rect;(x,y,x+320,y+240));
pDisplay->Update();