Sign in to follow this  

SetViewport and ID3DXSprite

This topic is 4378 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'm doing the GUI for my game, and I have a lot of scrolling views. Most of the time, the bottom row is shown partially, but I want to draw it anyways. This will provide more feedback that there is more stuff. The active scrollbar doesn't convey enough feedback. So, I figured, I'd draw the whole bottom row and let SetViewport clip the bottom row. I'm using ID3DXSprite to draw my GUI and fonts. However, ID3DXSprite doesn't seem to be responsive to the settings of SetViewport. I've looked at the methods of ID3DXSprite to see if there's a method for clipping, but I've had no luck. Am I missing something obvious, or am I gonna have to be a "big boy" and use an orthagonal projection matrix instead of the ID3DXSprite for my GUI? I've checked the parameters of SetViewport and the result code for errors too. Thanks, Bobby Thurman

Share this post


Link to post
Share on other sites

This topic is 4378 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.

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

Sign in to follow this