hi all
i used the loops you all told me but every time the program hangs.
can you tell me why?
and i have the problem that i need this kind of loop in 4 windows to render in ogl
thx
--=[[TheMatrixXXX]]=--
main loop
Okay, hint: you can''t have 4 main loops. A main loop is an infinite loop: you enter it without the plan of leaving it (well, okay, you might leave it at at some point off course).
I think what you should do, is create per window a function that simply checks&executes all the commands for that window, then create a *single* main loop in your code that calls the first-window-function, then the second-window-function... ... fourth-window-function, and then loops again.
-Maarten Leeuwrik, www.sherman3d.com
Follower of the NLS
(New Lounge Standards)
I think what you should do, is create per window a function that simply checks&executes all the commands for that window, then create a *single* main loop in your code that calls the first-window-function, then the second-window-function... ... fourth-window-function, and then loops again.
-Maarten Leeuwrik, www.sherman3d.com
Follower of the NLS
(New Lounge Standards)
If this isn''t some kind of prank question, there''s a generic windows app sample all over the www, and in the MSDN.
There''s a simple message handling loop in there, and you can investigate the PeekMessage function so that your app doesn''t have to wait for a message before it runs an iteration of its main loop.
Helpful links:
How To Ask Questions The Smart Way | Google can help with your question | Search MSDN for help with standard C or Windows functions
There''s a simple message handling loop in there, and you can investigate the PeekMessage function so that your app doesn''t have to wait for a message before it runs an iteration of its main loop.
Helpful links:
How To Ask Questions The Smart Way | Google can help with your question | Search MSDN for help with standard C or Windows functions
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement