BabylonNative icon indicating copy to clipboard operation
BabylonNative copied to clipboard

Switch to fullscreen

Open crmabs opened this issue 4 years ago • 9 comments

I'm quite certain it's in front of me, but I wasn't able to work it out: how can I switch to fullscreen mode? We are talking about a native playground here.

crmabs avatar Dec 21 '20 21:12 crmabs

Assuming you mean exclusive fullscreen mode, this isn't supported at the moment. It appears bgfx doesn't support this either.

bghgary avatar Dec 21 '20 22:12 bghgary

well, apart from it's too bad, is there a way to have a borderless fullscreen window?

crmabs avatar Dec 22 '20 00:12 crmabs

Sure. If you don't need exclusive fullscreen, you can create the window for the targeted platform to be borderless. That isn't technically part of the Babylon Native library and more on the app/UI side.

bghgary avatar Dec 22 '20 00:12 bghgary

Is there a documentation somewhere about this? Maybe I shall continue reading bgfx docs?

crmabs avatar Dec 22 '20 02:12 crmabs

Is there a documentation somewhere about this?

What platform are you targeting?

Maybe I shall continue reading bgfx docs?

Only if you are planning to contribute a fix to Babylon Native or bgfx.

bghgary avatar Dec 22 '20 17:12 bghgary

Well, back then I thought there will be a generic "in-babylon-native" call to switch to fullscreen. So I thought I'll cover all the supported platforms.

arm64 is the most important one currently. I'm trying to build stuff that runs on an Nvidia Jetson Nano running Ubuntu.

crmabs avatar Dec 22 '20 17:12 crmabs

one more, I know it's not the right place, but since we are in a conversation: void Graphics::Impl::DisableRendering() {

  •    assert(m_renderThreadAffinity.check());
    

If I leave this line in the source in Core/Graphics/Source/Graphics.cpp then the app crashes on each exit.

crmabs avatar Dec 22 '20 17:12 crmabs

a generic "in-babylon-native" call to switch to fullscreen

That's why I assumed you mean exclusive fullscreen and even then it only makes sense for desktop. A generic fullscreen feature probably doesn't make much sense for Babylon Native.

arm64 is the most important one currently. I'm trying to build stuff that runs on an Nvidia Jetson Nano running Ubuntu.

Linux is what I was looking for :-) The CPU architecture doesn't really matter. As for the specifics, I don't know how to do it in Linux, but a search for "x11 make window fullscreen" seems to have some relevant results.

Core/Graphics/Source/Graphics.cpp then the app crashes on each exit.

Yeah, we know about this one. It's an assert though, not a crash. We will fix it soon. It's rather annoying. ;-)

bghgary avatar Dec 22 '20 19:12 bghgary

Many thanks. The picture is clear now. Thanks for this awesome product!

crmabs avatar Dec 23 '20 11:12 crmabs