Jump to content

Switching between game loop, and 2D GUI


ShufordTechnology
 Share

Recommended Posts

Using examples from:

https://www.ultraengine.com/learn/GUI?lang=cpp

I can build the UI as i want, and it works fine, when the user presses "start game" i switch to the main game loop, loading all of the objects for the game.

When the user presses ESC, it removes the world, scene, objects, etc then reloads the UI, and enters the UI loop.

The problem is, the user interface buttons etc are all hidden behind a frozen screen of the last view in the 3D game.

The buttons can be clicked, but you cannot see them.

I tried to find a way to clear the screen before loading the UI, but have not found anything in the documentation.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...