Using the C API
In addition to our C++ API, Ultralight also offers a portable C API for use within C and other languages.
Set Up Include Directories
To use Ultralight in your code, simply add the following directory to your project's include directories (replace
<SDK_ROOT> with the actual path you've placed the SDK):
Include Headers In Your Code
<Ultralight/CAPI.h> at the top of your code to import the API.
If you want to use the optional AppCore API (cross-platform windowing/drawing layer), you should also include
<AppCore/CAPI.h> at the top of your code.
Updated almost 3 years ago