# Control engine start, loop, and end in my own C++

**URL:** <https://forums.unrealengine.com/t/control-engine-start-loop-and-end-in-my-own-c/309249>\
**Category:** Audio\
**Tags:** control, start, unreal-engine, loop, CPP, question\
**Created:** [March 4, 2015, 10:17pm UTC](https://forums.unrealengine.com/t/control-engine-start-loop-and-end-in-my-own-c/309249 "2015-03-04T22:17:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_45c2a24d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_45c2a24d](https://forums.unrealengine.com/u/anonymous_user_45c2a24d)\
**Post date:** [March 4, 2015, 10:17pm UTC](https://forums.unrealengine.com/t/control-engine-start-loop-and-end-in-my-own-c/309249/1 "2015-03-04T22:17:18Z")

</div>

I am working on a game that needs integrating some 3rd party C++ SDK’s into the project. Indeed, I need my game to start from my own C++ main entry function and do the following works:

a. call a Start function to initialize Unreal engine.  
b. In my own game loop, call Update and Render functions to notify Unreal engine to refresh a frame (Unreal does not do any frame update internally)  
c. Call an End function to uninitialize Unreal and quit the game.

Please let me know if it is possible to do this, or give me any idea that I can get this work done.

Thanks a lot,

---

<div class="post-metadata">

**Author:** ![WHSolv](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WHSolv](https://forums.unrealengine.com/u/WHSolv)\
**Post date:** [February 17, 2018, 12:25pm UTC](https://forums.unrealengine.com/t/control-engine-start-loop-and-end-in-my-own-c/309249/2 "2018-02-17T12:25:12Z")

</div>

Look in [UGameEngine](https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/Engine/UGameEngine/) – it’s probably what you are looking for.
