Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 867 Bytes

README.asciidoc

File metadata and controls

35 lines (25 loc) · 867 Bytes

webView

HTML5 rendering support for omegalib

Running on Linux

  • Make sure you have libudev0 and libgcrypt11 installed

  • Set LD_LIBRARY_PATH to the omegalib bin directory.

Tile API

Omegalib / Javascript API

Some omegalib functions are available to the page through the OMEGA javascript object.

The OMEGA object

Method(s)

Description

setFrameFunction(string name)

Sets the name of the function to be called each frame.

omegalib context object

The omegalib context object is passed to the frame function. It contains the following fields.

Field

Description

activeCanvasRect

Array with 4 values with active canvas rect.

cameraPosition

3 value array with x,y,z position fo default omegalib camera.