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

compiling 32-bit and 64-bit applications for OpenGL, OpenGL procedure calls, Shared Libraries, Library

Page 33 highlights

compiling and linking programs This table summarizes the shared libraries that are linked on the command line example above. Shared Libraries Library Description libGL OpenGL loader library libGLU OpenGL utility library libX11 X11 routines libXext X11 extensions libXhp11 HP X11 extension compiling 32-bit and 64-bit applications for OpenGL 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 -Ae +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 OpenGL procedure calls In order to facilitate maximum performance, the OpenGL library uses a unique procedure calling convention. To get the best performance, you must include the gl.h header file supplied with HP's implementation of OpenGL in any source code that makes OpenGL calls. Any gl.h files from other vendors or other sources will produce reduced performance and may not work correctly. OpenGL implementation guide 4-3

  • 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
4–3
compiling and linking programs
This table summarizes the shared libraries that are linked on the command line example above.
Shared Libraries
compiling 32-bit and 64-bit applications for OpenGL
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 -Ae +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
OpenGL procedure calls
In order to facilitate maximum performance, the OpenGL library uses a unique procedure calling
convention.
To get the best performance, you must include the
gl.h
header file supplied with HP’s
implementation of OpenGL in any source code that makes OpenGL calls. Any
gl.h
files from
other vendors or other sources will produce reduced performance and may not work correctly.
Library
Description
libGL
OpenGL loader library
libGLU
OpenGL utility library
libX11
X11 routines
libXext
X11 extensions
libXhp11
HP X11 extension