Jump to content

Search the Community

Showing results for tags 'main loop'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to UNIGINE Forums
    • News & Announcements
    • Getting started
  • Development
    • Content Creation
    • World Design
    • Rendering
    • Animation
    • Physics, Navigation and Path Finding
    • UI Systems
    • Sound & Video
    • Editor
    • C++ Programming
    • C# Programming
    • Networking
    • Sim IG (Image Generator)
    • VR Discussions
    • General
  • Improving UNIGINE
    • Documentation
    • Feedback for UNIGINE team
    • Bug Reports
    • Unigine SDK Beta feedback
  • Community
    • Add-on Store (https://store.unigine.com/)
    • Showcase
    • Collaboration
    • Tools, Plugins, Materials & Tutorials
    • General Discussions
  • Legacy
    • UnigineScript

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Found 1 result

  1. Main loop in Editor2

    Hi, I am implementing custom modules into engine as addition into code of main class: main() { ... Unigine::Engine* pEngine = Unigine::Engine::init(UNIGINE_VERSION, argc, argv); while (!pEngine->isDone()) { pEngine->update(); pEngine->render(); pEngine->swap(); } ... } which works well in game mode, but it holds at pEngine->Update() method in Editor2 (runned as argument -video_app auto -video_vsync 0 -video_refresh 0 -video_mode 1 -video_resizable 1 -video_fullscreen 0 -video_debug 0 -video_gamma 1.000000 -sound_app auto -data_path "../" -engine_config "../data/unigine.cfg" -extern_plugin "Collada,Editor2" -console_command "config_readonly 0 && world_load \"xxx\""). It's going through pEngine->Update() after closing Editor2. How can I make this loop: while (isDone() == 0) { update(); render(); swap(); } to work with Editor2 ? If is not possible then do I should try to move my implementation into AppSystemLogic ?
×
×
  • Create New...