Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gui World Position #20

Closed
SirRamEsq opened this issue Jan 14, 2018 · 4 comments
Closed

Gui World Position #20

SirRamEsq opened this issue Jan 14, 2018 · 4 comments

Comments

@SirRamEsq
Copy link
Owner

Be able to create windows based on world position instead of screen position

@SirRamEsq
Copy link
Owner Author

Imgui has plans for a virtual viewport function, may be interested to see if it can help.
ocornut/imgui#1542

@SirRamEsq
Copy link
Owner Author

Otherwise will have to do something like:
have a function "ImGui::BeginWorldWindow" that uses world coordinates
After being called, all Imgui functions will now store the commands sent instead of processing;
At render time, Renderer will generate(NOT RENDER!) the draw commands for the screen GUI before rendering anything
Renderer will then process and render the World draw commands for each camera after it renders its respective scene.
Then, will render the initially generated draw commands for the screen gui

@SirRamEsq
Copy link
Owner Author

Will want to make use of contexts
Imgui::CreateContext
Set/GetCurrentContext
and DeleteContext

Thinking that the Engine may have two going at once, one for screen space and one for world space.

See:
ocornut/imgui#269

@SirRamEsq SirRamEsq reopened this Jan 18, 2018
@SirRamEsq
Copy link
Owner Author

Added in cab659d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant