Hello,
I need help in my application development.
I'm actualy working on editor for simple 3D App, and I need to add window for rendering 3D content into the editor. But as many of you know, 3D apps have the while loop keep rendering. So if I create main editor window and the the 3D content window, how can I set up the 3D App so everytime ESC is pressed, the mouse and control will be given to main editor window. I thought about some thread, but then I need to "pause" it everytime ESC is pressed. Is any way how to pause the thread in C++ ?
Thew
Recommended Answers
Jump to PostMS-Windows: Sleep(milliseconds) -- *nix: usleep(milliseconds).
Jump to PostI'm quite sure he asked how to test keypress in while but I have no idea how to do it while( now)
All 5 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Cybulski
5
Light Poster
TacklesMcCaw
0
Newbie Poster
Thew
TacklesMcCaw
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.