Jump to content
  • Advertisement


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


sprites in dx8

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

okay im trying to use the built in sprite class with dx8, but dont seem to be working, i loadding a texture from a bmp file, LPD3DXSPRITE sprite; //my sprite right... LPDIRECT3DTEXTURE8 texture; //and my texture... D3DXCreateSprite(g_pd3dDevice, &sprite); //then to draw the sprite i do... sprite->Begin(); //i tryed this, it not working sprite->Draw( texture, NULL, &D3DXVECTOR2(100,100), NULL, NULL, &D3DXVECTOR2(10,10), D3DCOLOR(100)); //where mLocal is a trnasform/rotation matrix //i have previously set up.... sprite->DrawTransform(texture, NULL, &mLocal, NULL); sprite->End(); i tryed doing Draw(), and DrawTransform() by them selves, and with each other, nothing is showing up.... ene ideas?

Share this post

Link to post
Share on other sites
After looking at your code there, I think it may be due to the alpha value you have supplied to Draw(). Try using the D3DCOLOR_ARGB() macro instead.


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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!