Drawing Multiple 2D Images [Resolved]

Started by
1 comment, last by mushroomrealm 10 years ago

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.

Advertisement

Original poster says that he found a solution.

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

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.

This topic is closed to new replies.

Advertisement