Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    10
  • comments
    2
  • views
    6531

Hey! Why you running?

Sign in to follow this  
Gor435

402 views

it is about time, I know, but I think I have figured out my problems with DirectX. A tip for all of you out there. If you read Beginning DirectX 10 Game Programming it is a really good book, if you can follow it, know WTF your doing, or are just really good at troubleshooting crazy stuff, you just really have to watch yourself. Things change change from chapter to chapter and sometimes important details get left out. Like in chapter 3 to get my sprite to display properly I had to add spriteObject->SetProjectionTransform(&matProjection);. Now I am no DirectX expert of course but my sprite would not display until this was done. This bit of code was no where to be found for the example I was working with. Only problem is they do not add this until later when they talk about multiple sprites. So the part where you have "all the code" you need to display "a" sprite it totally leaves you scratching your head. Oh and the code on the CD does not match what is in the book.

Good thing I was like wtf and figured out what I was missing. If I hadn't I might not be posting this. This is a test of the background and a single sprite. I am going to bed but please... enjoy.



Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!