Unigine Integration into SDL Application
This article describes the sample located in the <UnigineSDK>/source/app/main_sdl folder.
The sample demonstrates how to embed Unigine into an SDL-based application, namely:
- Create a simple SDL-based application
- Integrate Unigine into the application
- Initialize the OpenGL mode
In this sample, the engine controls the main loop by itself: the doUpdate(), doRender() and doSwap() functions are overridden and call the update(), render() and swap() functions respectively.