Original Post
Hi
Im currently learning how to program directx 8 using a book i brought.
The book goes from GDI, DirectX 2D then DirectX 3D and im currently at the DirectX 2D part but having trouble with some code.
Basically i want to be able to use DirectX to load a bitmap onto a surface, then copy that to the backbuffer which in turn becomes the primary buffer at the end of the render function.
This is roughly what the book says on how to do it .
Create a new Surface that holds the bitmap using pDevice->CreateImageSurface
then load the bitmap from file into the surface just created using D3DXLoadSurfaceFromFile
Once that is done, copy the bitmap to the backbuffer with pDevice->CopyRects
then pDevice->Present see the results
now i understand that, but when i try it, it doesnt work, the screen is just blank because of the ->Clear
I can draw pixels onto the backbuffer fine, its just bitmaps im having trouble with, and thats a subject i do not want to skip
Hope ye can help
thanks.