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

Dear Imgui background #6228

Closed
Github-user-44 opened this issue Mar 7, 2023 · 5 comments
Closed

Dear Imgui background #6228

Github-user-44 opened this issue Mar 7, 2023 · 5 comments

Comments

@Github-user-44
Copy link

Version: v1.89.4 WIP
Branch: Master

Back-ends: DX9
Compiler: Visual Studio 2022
Operating System: Windows 10 pro

So I'm just getting back into Dear Imgui and I'm using the DirectX9 example provided by your GitHub but I can't seem to get rid of the background, I don't mean my menus background Im on about the background the menu displays on.

I had a look through some of the documentation and couldn't find anything to help me, as well as looking at other examples from other users but still can't find anything to help, Thanks.

ImGui_ImplDX9_NewFrame();
ImGui_ImplWin32_NewFrame();
ImGui::NewFrame();
{
     ImGui::Begin("Test", nullptr, NULL);
     ImGui::Text("Hello, world!");
     ImGui::End();
 }
 ImGui::EndFrame();

image
image

I'm trying to get rid of the blue background that the menu renders within.

@GamingMinds-DanielC
Copy link
Contributor

The obvious place to start would be ImVec4 clear_color = ...;. After all, that is the color the render target is cleared in and happens to be kinda blue.

@ocornut
Copy link
Owner

ocornut commented Mar 7, 2023

If there is a window there need to be something displayed in it. I don’t even understand what “getting rid of the background” would mean in this context, what do you replace it with.

I am afraid this isn’t much of a dear imgui question.

@ocornut ocornut closed this as completed Mar 7, 2023
@Github-user-44
Copy link
Author

Github-user-44 commented Mar 7, 2023

If there is a window there need to be something displayed in it. I don’t even understand what “getting rid of the background” would mean in this context, what do you replace it with.

I am afraid this isn’t much of a dear imgui question.

what I mean by "getting rid of the background" is this, Photo below (Found on google).

image
In this photo above the GUI renders on the desktop only

image
Whereas this photo has that background on it if that makes sense.

Sorry about the bad context on the Original post

@ocornut
Copy link
Owner

ocornut commented Mar 8, 2023

This would be part of multi-viewports feature and is discussed in #3350
In fact, we did some work already to make it possible for the main viewport to be a monitor (used as a fallback), so technically speaking there's no a lots of work left to do to allow running with no main platform window, and I suspect it is doable on user's end. But it's not our priority since it will attract waves of new users and multi-viewports are not solid enough yet. I think we will tackle idle mode and then rewrite viewports v2 to offer this and other things, but until then best to consider that it is not possible.

@byteIock
Copy link

you found a fix struggling on this

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

5 participants
@ocornut @GamingMinds-DanielC @Github-user-44 @byteIock and others