Jump to content
  • Advertisement
Sign in to follow this  
jamesleighe

Drawing Two Squares

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

If I draw one textured square with alpha blending (and a texture that makes use of that) and a color square (D3DFVF_XYZ | D3DFVF_DIFFUSE) it will be blank (see-through). If I use another texture that does not use alpha blending it works fine... Very strange.

How could the currently set texture make a difference when drawing a D3DFVF_DIFFUSE only object?

Any ideas?

Thanks!

Share this post


Link to post
Share on other sites
Advertisement
Do you have dev->SetTexture(0,NULL) before you draw the color square?

Other than that, you'll need to post some code.

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!