Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Ademan555

ID3DXSprite::Draw() in dx9...

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

Ok, I cane render my sprites fine provided the arguements D3DXVECTOR2* RotationCenter, and float Rotation are NULL, but as soon as i put anything in for them, even if its a rotationcenter with values x=0 any y=0 it still hates it, same goes for rotation, my only insight into this is that the prototype for this draw function appears to be (according to the dx9 sdk) the protoype for the 8.1 version of this function rather than the 9.0b summer sdk one.... other than that, im jsut confused, tell me if you want me to restate anything, this is a major roadblock for me and any help is appreciated... thank you -Dan -Dan Yes I realize im a n00b...

Share this post


Link to post
Share on other sites
Advertisement
Are you using the debug runtimes??

Anything interesting in the debug spew??

is your rotation angle in rads, not degrees??

Cheers
Chris

Share this post


Link to post
Share on other sites
thank you, at least a post, well see, even if i pass 0, i still get shit, (even though NULL should be equivalent right? so wtf?!?!) yah i think im using the debug runtime (#pragma comment(lib, "d3dx9d.lib") ??)


-Dan

Yes I realize im a n00b...

Share this post


Link to post
Share on other sites
You haven''t really explained what''s happening...

When you say it hates it what do you think it hates??

Can you see your bitmap??
Is it just not rotated??


What is the return value of the call??

Cheers
Chris

Share this post


Link to post
Share on other sites
sri, i cant see ANYTHING... but my normal sprite from which i derived this class, renders fine, and the same loading function is used, though a different constructor and rendering function

-Dan

Yes I realize im a n00b...

Share this post


Link to post
Share on other sites
no error return, but then again im using dx9dt.lib or something like that, for some reason the other one wouldnt work...


-Dan

Yes I realize im a n00b...

Share this post


Link to post
Share on other sites

  • 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!