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
The sample can be run on Windows and Linux only.
Only SDL version 1.2 is supported.
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.
Unigine integrated into the SDL application window
See Also#
- Article on App Class to learn how to create an application based on the Unigine::App class.
Last update:
2018-12-27
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)