Add OpenGL heads-up display


Purpose This sample shows a combination of Dynamic Display application programming interface (API) drawings and pure OpenGL drawings in the same tool. This sample shows the map's azimuth as a heads-up display (HUD) that updates automatically when the map rotates. In this sample, while you are rotating the map, the numbers referenced in the HUD are different than the numbers reported by the rotation tool. The reason is that the reported map rotation is the mathematical angle, while the HUD shows the angle from the north (the map's azimuth).

How to use

See How to use ArcGIS samples for help running the sample.

  1. Run the sample.
  2. Click the Add OpenGL HUD command. A heads-up-display is added to the map.
  3. Use the Rotate tool to rotate the map. The display is updated to reflect the rotation of the map.





Additional Requirements
  • While running the sample using the Java command, you must provide the Djava.library.path=<path_to_jogl_lib_folder> VM argument. The value of this argument depends on the operating system you're using. For Windows, it will be similar to %ARCGISHOME%/java/samples/engine/lib/jogl/jogl-1.1.0-windows-i586/lib.

Development licensing Deployment licensing
Engine Developer Kit Engine Runtime