GeUserArea::Draw() and textures

Hi folks,

can anyone tell me if it's possible to draw a texture that already exists on the graphics card, without having to transfer it to the CPU-side, when in a GeUserArea()?

Currently, I pull the texture, then transfer the data to a BaseBitmap, then do this in DrawMsg():

void MyUserArea::DrawMsg(LONG x1,LONG y1,LONG x2,LONG y2,const BaseContainer &msg)
	{
		SetClippingRegion(x1,y1,x2,y2);
		OffScreenOn();
	
		DrawSetPen(COLOR_BG);
		DrawRectangle(x1,y1,x2,y2);

		if(texture)
		{
			DrawBitmap(texture,Left,Top,Right,Bottom,0,0,texture->GetBw(),texture->GetBh(),BMP_NORMAL);
		}
	}

but it's very slow once the texture gets above HD desktop size. Is there a hack I can use to just draw what I've already got in GPU memory? Is there something like a BaseDraw object I can tap into here from inside the DrawMsg() method?

WP.

hi,

sorry, but with the classic API it's not possible.

Cheers,
Manuel

MAXON SDK Specialist

MAXON Registered Developer