HP Workstation zx2000 HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 9

threads support, additional documentation

Page 9 highlights

overview of OpenGL threads support OpenGL supports Level 2 threads. This means HP OpenGL can be used in threaded applications, and more than one thread can use OpenGL. Using OpenGL graphics in a kernel threaded application requires that the application link with libpthread.so (not the archived version, libpthread.a). OpenGL libraries are not cancel safe or fork safe. A given context can only be current in one thread at a time. Enable your X11 library to use threads by calling XInitThreads () in your program. An example of a threaded OpenGL program is given in /opt/graphics/OpenGL/demos/threads. additional documentation For more information on using threads, see the following documentation: ■ The http://docs.hp.com Web site (search for "Threads" and "Multiprocessing") ■ The OpenGL Programming Guide ■ The OpenGL Reference Manual ■ Threadtime by S. Norton and M. Dipasquale OpenGL implementation guide 1-5

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42

OpenGL implementation guide
1–5
overview of OpenGL
threads support
OpenGL supports Level 2 threads. This means HP OpenGL can be used in threaded applications,
and more than one thread can use OpenGL.
Using OpenGL graphics in a kernel threaded application requires that the application link with
libpthread.so (not the archived version, libpthread.a).
OpenGL libraries are not cancel safe or fork safe.
A given context can only be current in one thread at a time.
Enable your X11 library to use threads by calling XInitThreads () in your program. An example
of a threaded OpenGL program is given in /opt/graphics/OpenGL/demos/threads.
additional documentation
For more information on using threads, see the following documentation:
The
Web site (search for “Threads” and “Multiprocessing”)
The
OpenGL Programming Guide
The
OpenGL Reference Manual
Threadtime
by S. Norton and M. Dipasquale