HP Workstation zx2000 HP Release Notes for HP OpenGL for HP-UX 11.X of IPF-Bas - Page 3

by S. Norton and M. Dipasquale

Page 3 highlights

Threads Information HP OpenGL supports Level 2 threads for this release. This means HP OpenGL can be used in a threaded application. More than one thread can use OpenGL. A given context can only be current in one thread at a given time. Note that using OpenGL graphics in a kernel-threaded application requires that the application link with libpthread.sl (not the archived version, libpthread.a). Also, note that OpenGL libraries are not cancel safe or fork safe. For additional information on using threads, refer to the following documentation: * The http://www.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 64-bit Computing Information 64-bit applications are supported with OpenGL for this release. Applications using 64-bit computing are supported on SPUs with 64-bit capabilities only; they are not supported on 32-bit SPUs. For information on porting your application to take advantage of 64-bit capabilities, see the http://www.docs.hp.com/ Web site. Search for "64-bit Computing" and "Porting." Note that 64-bit OpenGL allows "large data space" because the pointers are now 64-bit. But, the OpenGL data types themselves are the same as the 32-bit library. For example, GLint is a 32-bit integer, not a 64-bit long. All 64-bit OpenGL libraries are located in: /opt/graphics/OpenGL/lib/hpux64. The following sample compile and link lines may help you to build your application once it has been ported to take advantage of 64-bit capabilities. * Sample 32-bit compile and link: cc -Ae -z -I/opt/graphics/OpenGL/include -I/usr/include/X -o cube.32 \ cube.c -L/opt/graphics/OpenGL/lib/hpux32 -L/usr/lib/hpux32/X11R6 \ -lGLU -lGL -lXhp11 -lXext -lX11 -lm -ldld * Sample 64-bit compile and link: cc -Ae +DD64 -z -I/opt/graphics/OpenGL/include \ -I/usr/include/X11R6 -Wl,+compat -o cube.64 cube.c \ -L/opt/graphics/OpenGL/lib/hpux64 \ -L/usr/lib/hpux64/X11R6 -L/usr/lib/hpux64 \ -lGLU -lGL -lXhp11 -lXext -lX11 -lm

  • 1
  • 2
  • 3

Threads Information
===================
HP OpenGL supports Level 2 threads for this release. This means HP OpenGL can
be used in a threaded application. More than one thread can use OpenGL. A
given context can only be current in one thread at a given time.
Note that using OpenGL graphics in a kernel-threaded application requires that
the application link with libpthread.sl (not the archived version,
libpthread.a). Also, note that OpenGL libraries are not cancel safe or fork
safe.
For additional information on using threads, refer to 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
64-bit Computing Information
============================
64-bit applications are supported with OpenGL for this release. Applications
using 64-bit computing are supported on SPUs with 64-bit capabilities only;
they are not supported on 32-bit SPUs.
For information on porting your application to take advantage of 64-bit
capabilities, see the
Web site. Search for "64-bit
Computing" and "Porting."
Note that 64-bit OpenGL allows "large data space" because the pointers are now
64-bit. But, the OpenGL data types themselves are the same as the 32-bit
library. For example, GLint is a 32-bit integer, not a 64-bit long.
All 64-bit OpenGL libraries are located in:
/opt/graphics/OpenGL/lib/hpux64.
The following sample compile and link lines may help you to build your
application once it has been ported to take advantage of 64-bit capabilities.
* Sample 32-bit compile and link:
cc -Ae -z -I/opt/graphics/OpenGL/include -I/usr/include/X -o cube.32 \
cube.c -L/opt/graphics/OpenGL/lib/hpux32 -L/usr/lib/hpux32/X11R6 \
-lGLU -lGL -lXhp11 -lXext -lX11 -lm -ldld
* Sample 64-bit compile and link:
cc -Ae +DD64 -z -I/opt/graphics/OpenGL/include \
-I/usr/include/X11R6 -Wl,+compat -o cube.64 cube.c \
-L/opt/graphics/OpenGL/lib/hpux64 \
-L/usr/lib/hpux64/X11R6 -L/usr/lib/hpux64 \
-lGLU -lGL -lXhp11 -lXext -lX11 -lm