Jump to content
  • Advertisement
Sign in to follow this  
Fyber

Texture doesnt appear

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

I made a D3D class to draw a texture on the screen. but when i run it the texture doesnt appear. I also looked at the artikel "2D in Direct3D using Textured Quads" here on gamedav but couldnt find what he was doing diffrent than me. I just give a link the the whole projectfile becouse i really dont know where im doing something wrong. I used Visual Studio 2003 to build it. Linky to the Projectfile. Fyber

Share this post


Link to post
Share on other sites
Advertisement
You are trying to draw transformed vertices. As such, they contain an RHW value. In the FVF, you need to use D3DFVF_XYZRHW instead of D3DFVF_XYZ.

Hope this helps :).

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!