Jump to content
  • Advertisement
Sign in to follow this  
quaker

Sprite Draw Problem

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

What may cause an INVALIDCALL err from a Sprite->Draw? The texture and the sprite are created with no problems, and the draw call is invoked withing Begin/End pair. Any ideas? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Check to see if the file is in the right location. I think I had to move my own file around when I had that error. If you checked that, next step is to look at this function: D3DXCreateTextureFromFileEx(); Most errors I've seen happen if this function is done incorrectly. For example, my own class contains the following:
D3DXCreateTextureFromFileEx(pd3dDevice, spritePath, spriteWidth,
spriteHeight, 1, 0, D3DFMT_UNKNOWN, D3DPOOL_MANAGED, D3DX_DEFAULT, D3DX_DEFAULT, 255, NULL, NULL, &spriteTexture);

Share this post


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

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