Sign in to follow this  
Mathy

[SlimDX] Background image?

Recommended Posts

Mathy    104
I need some help showing a background image. I did a lot of research, and I figured out that I need to render a quad with TransformedTextured vertices. However, once I've done that, I am clueless on what to do if I have an image file called "Blah.jpg" that I want to apply on the actual quad. I tried this: Device.SetTexture(0, <textureHere>) But without any luck. Any ideas to what I may be doing wrong?

Share this post


Link to post
Share on other sites
Washu    7829
Make sure you have texture coordinates set properly on your quad.
Make sure you have your states set to enable texturing.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this