Archived

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

CProgrammer

D3D8 in 2d question

Recommended Posts

CProgrammer    303
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
noixtirdoe    157
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).

-Noix-

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