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: 10.08.2018
Помогите сделать статью лучше
Была ли эта статья полезной?
(или выберите слово/фразу и нажмите Ctrl+Enter