Implementing Multiple Threads in an OpenGL Application (128122)
The information in this article applies to:
- Microsoft Win32 Application Programming Interface (API), when used with:
- Microsoft Windows NT Server 3.5
- Microsoft Windows NT Server 3.51
- Microsoft Windows NT Workstation 3.5
- Microsoft Windows NT Workstation 3.51
- Microsoft Windows 2000 Advanced Server
- Microsoft Windows 2000 Server
- Microsoft Windows 2000 Professional
This article was previously published under Q128122 SUMMARY
It is possible to create multiple threads in an OpenGL application and have
each thread call OpenGL functions to draw an image. You might want to do
this when multiple objects need to be drawn at the same time or when you
want to have certain threads perform the rendering of specific types of
objects.
This article explains how to obtain GLTHREAD, a sample that demonstrates
how to implement multiple threads in an OpenGL application. The main
process default thread creates two threads that each draw a
three-dimensional wave on the main window. The first thread draws a wave on
the left side of the screen. The second thread draws a wave on the right
side of the screen. Both objects are drawn simultaneously, demonstrating
OpenGL's ability to handle multiple threads.
Modification Type: | Minor | Last Reviewed: | 3/1/2005 |
---|
Keywords: | kbdownload kbcode kbFAQ kbfile kbinfo kbSample KB128122 kbAudDeveloper |
---|
|