HP Workstation zx2000 HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 10
standard OpenGL product, bit programming, OpenGL Utilities Library GLU, input and output routines
View all HP Workstation zx2000 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 10 highlights
overview of OpenGL 64-bit programming For information on porting your application to take advantage of 64-bit capabilities, see the http://docs.hp.com Web site. Search for "64-bit Computing" to find the topic on "Porting." 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 -I/opt/graphics/OpenGL/include \ -I/usr/include/X11R6 -o cube.32 cube.c \ -L/opt/graphics/OpenGL/lib/hpux32 \ -L/usr/lib/hpux32/X11R6 -lGLU -lGL -lXhp11 -lXext -lX11 -lm Sample 64-bit compile and link: cc -Aa +DD64 -I/opt/graphics/OpenGL/include -I/usr/include/X11R6 -o cube.64 \ cube.c -L/opt/graphics/OpenGL/lib/hpux64 \ -L/usr/lib/hpux64/X11R6 -L/usr/lib/hpux64 -L/usr/lib \ -lGLU -lGL -lXhp11 -lXext -lX11 -lm standard OpenGL product This section covers the following topics: ■ the OpenGL utilities library (GLU) ■ input and output routines ■ the OpenGL extensions for the X Window system (GLX) OpenGL Utilities Library (GLU) The OpenGL Utilities Library (GLU) provides a useful set of drawing routines that perform such tasks as: ■ generating texture coordinates ■ transforming coordinates ■ tessellating polygons ■ rendering surfaces ■ providing descriptions of curves and surfaces (NURBS) ■ handling errors For a detailed description of these routines, refer to the Reference section or the OpenGL Reference Manual. input and output routines OpenGL was designed to be independent of operating systems and window systems, therefore, it does not have commands that perform such tasks as opening a window. To obtain these capabilities, you will need to use X Windows routines (those whose names start with "glX"). 1-6 OpenGL implementation guide