• Advertisement
Sign in to follow this  

draw texture on screen

This topic is 3480 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

I want to draw a texture on screen. I can do it with a rectangle mapped with texture, but is there any built-in helper object like billbord or sprite which I can use so that I dont have to take care of scaling and rotations? using Dx 9c, VC++ 2005

Share this post


Link to post
Share on other sites
Advertisement
I dont have any other geometry in the scene, its just this texture that I need to display filling the full viewport...

Share this post


Link to post
Share on other sites
If you want the quad to fill out the entire screen, you don't need to care about rotation and position.

Create a quad that ranges from [1, -1] to [-1, 1] (Upper left and lower right corners) and then render that quad with the projection, view and world matrices set to an identity matrix. This way the quad will always be renderer "in front" of the screen.

Share this post


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

  • Advertisement