First off, I want to give a warm heart thank you for all that posted on my last post.
I have a problem. I have decided to go with the DirectX API and want to begin getting a graphic (a character sprite) on the screen. My goal is to get it moving. In my book, "Beginning DirectX 9" it uses the StretchRect method to draw a sprite.
It is written as:
src and dest are variables of int with values. I understand how all this works.
However, in VS2012 it tells me that src and dest should be referenced (&). When I do this I get no image come up. If I set these to NULL and have D3DXLoadSurfaceFromFile load a file then it displays.
All I want is to get a sprite in a certain position on the sreen.
If anymore information is required to help than I will post it if asked.