Jump to content
  • Advertisement
Sign in to follow this  
wisey

Sprite Blitting + Game Loops

This topic is 2316 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

http://ideone.com/giOYU

I've been re-factoring some code, please take a look. I managed to get a project to blit a sprite but the positioning is a little off. From the code I would assume that the sprite should be placed in the center of the screen. It is a 32 x 32 sprite. But its quite a bit of center. I was wondering if this is due to the way I have initialized D3D or the window?

Also, I need an Update and Render function to be called recursively because I have some animation logic that I need to code out. It seems that this code only calls the RenderScene() function once and this will not do for what I have in mind. Do you know where and how I would add this functionality.

Any suggestions about the above two problems are much appreciated.

--
Wisey

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!