Jump to content
  • Advertisement


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


D3D8 in 2d question

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

When I render 2d with D3D8 how will my working area look like if I have a window with width 100 and height 100. If I want a Pixel at the exact point 10,10 on my window, how do I do this.

Share this post

Link to post
Share on other sites
If you want to put a bitmap at (10,10), you would need to load the bitmap into a surface. You could either use the whole bitmap or just part of it (like a tile) by using a RECT struct to hold the tile dimensions. Then you would need to use the POINT struct and set the dimensions to (10, 10).
Using the CopyRects() method of the IDirect3DDevice8 object, you could put the bitmap at (10, 10).


In this world gone mad, we won''t spank the monkey; the monkey will spank us.

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.

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!