Jump to content
  • Advertisement
Sign in to follow this  
gp343

glutPostRedisplay equivalent in Windows

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

Hi, If I'm using only the WinAPI, do you know the equivalent of the "glutPostRedisplay" function in Windows? Thanks,

Share this post


Link to post
Share on other sites
Advertisement
Been a while since I've messed with MFC/GDI stuff but, from looking at the documentation I think this would be the proper way to handle it. You can check the documentation for more of the flags to control which messages are sent to your windows procedure.


BOOL RedrawWindow(
HWND hWnd, // handle to window
CONST RECT *lprcUpdate, // update rectangle
HRGN hrgnUpdate, // handle to update region
UINT flags // array of redraw flags
);

/* If both the hrgnUpdate and lprcUpdate parameters are NULL, the entire client area is added to the update region. */

RedrawWindow(hWnd, NULL, NULL, RDW_UPDATENOW);






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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!