Question about using UpdateSurface() in DirectX 9

JimDiesel

Newcomer
Joined
Aug 6, 2003
Messages
4
Location
Sacramento, California
Hi,

I'd like to create an off-screen Direct3D.Surface to load
some tiles into to transfer to the backbuffer.

Can I use the UpdateSurface method for this?

Example:

D3Device.UpdateSurface(D3DTileSurface, myRect,
BackBuffer, myPoint)

This doesn't work and throws an error.

I've set the BackBuffer to the .GetBackBuffer. Would
this be correct?

Basically, I want to be able to load a tileset from
a .bmp to a surface and then be able to blit it to the
screen to create a background. Is this possible?

Thanks in advance,

Jim
 
Back
Top