Directx 8 Screen Width / Height

Started by
1 comment, last by nanobyte 22 years, 8 months ago
Is there any way to get the width and height in directx 8? Im getting tired of guessing if statements to see if something has hit the edge of the screen. For example: if(ball_x > 20) bla bla I have to keep changing the number to get it right. Is there any way to extract this information? Thanks, Chris Lynch
Advertisement
G''day!

Since you set the width & height when you set everything up, why don''t you just store those values?


Stay Casual,

Ken
Drunken Hyena
Stay Casual,KenDrunken Hyena
I don''t remember setting up the width and height. I set up the window size to 800x600, but that is in pixel format. What about in 3d coordinates?

This topic is closed to new replies.

Advertisement