Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Drawing Multiple 2D Images [Resolved]


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 mushroomrealm   Members   -  Reputation: 133

Like
0Likes
Like

Posted 03 April 2014 - 11:31 PM

Having trouble drawing more than one 2D image with DirectX10 using the tutorial over at Rastertek.com. The problem I'm having is that only the first image I try to draw actually shows up on screen. I've given each image its own quad, texture, and coordinates. All of the images are sharing the same shader, is this the problem?

 

For anyone familiar with the Rastertek tutorial, I created a list of BitmapClass objects and then iterate through the list calling each ones render() function and then call the TextureShaderClass render() function with the appropriate BitmapClass texture.

 

Any help would be greatly appreciated. I think this all comes from not understanding what's really going on behind the scenes.



Sponsor:

#2 frob   Moderators   -  Reputation: 28892

Like
0Likes
Like

Posted 07 April 2014 - 03:37 AM

Original poster says that he found a solution.

 

@mushroomrealm, Care to share your solution with the community?


Check out my book, Game Development with Unity, aimed at beginners who want to build fun games fast.

Also check out my personal website at bryanwagstaff.com, where I write about assorted stuff.


#3 mushroomrealm   Members   -  Reputation: 133

Like
0Likes
Like

Posted 08 April 2014 - 01:19 AM

Sure thing. The problem turned out to be a typo in the list class I'd written. That's what I get for late night coding.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS