Skip to main content
gamedev.net
๐Ÿ”’ Locked

Rotate a sprite problem...

Started by Ilankt Jul 18, 2003 at 2:57 PM 0 replies 600+ views
Original Post
Ilankt
Ilankt
i''m doing something like this:
g_pSprite->Draw(Texture,&SrcRect,&D3DXVECTOR2(Scale,Scale),NULL,90.0f,&D3DXVECTOR2(float(DestX),float(DestY)),Color);
for rotoating 90 degrees, but this dosent work... can you tell me what is wrong? btw, with 0.0f it draw the sprite...
How appropriate, you fight like a cow!
Ilankt
Ilankt
never mind... this is not in degrees, this is in... dont remember how this is called, but 180 degrees=PI...
thx anyway
How appropriate, you fight like a cow!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.