Jump to content
  • Advertisement
Sign in to follow this  
vage

Kinda new to DirectX and C++

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

Hey guys, I am trying to do something I think is pretty simple but I just can't seem to figure it out. I have a timer counting down from 35 seconds, when it reaches 0 I would like a window to pop-up and let me know. How would I go about doing that in DirectX or something similar so that I can tell that my timer is working?

Share this post


Link to post
Share on other sites
Advertisement
well, I wouldn't go the DX way if I wanted to display a pop-up , in such case what you probably need is just a call to MessageBox() when your timer reaches zero.

Share this post


Link to post
Share on other sites
'MessageBox' is ok but not when you have things updated every frame.
For example for vector position debugging i use this:


char c[32];
sprintf( c, "x=%.2f y=%.2f z=%.2f", v.x, v.y, v.z );
SetWindowText( g_hWnd, c );

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!