Page 2 of 2

Re: How to create a new window?

Posted: Thu Aug 13, 2015 6:44 pm
by Khranos
Rickton wrote:-Cut-
Depending on how these loophole solutions work out, I'll likely be doing that in the end (it would much easier of course). However, I'm mostly trying to keep true windows in the usage because it seems a bit more novel and unique (to me, at least). Of course, novel will have its price, but I can see more people being interested.

Re: How to create a new window?

Posted: Thu Aug 13, 2015 11:22 pm
by Positive07
zorg wrote:[wiki]love.graphics.newScreenshot[/wiki]
That just takes a screenshot of the contents of the window, not the entire desktop unfortunately

You could just make them borderless and use something like this

Its not transparent but you dont have the annoying title bar on top which is nicer

Re: How to create a new window?

Posted: Thu Aug 13, 2015 11:31 pm
by zorg
Positive07 wrote:
zorg wrote:[wiki]love.graphics.newScreenshot[/wiki]
That just takes a screenshot of the contents of the window, not the entire desktop unfortunately
Sure, but apart from that one issue, the windows themselves would be "transparent" to each other, since the bottom one would be rendered by the top one, in a 2-window case.

Though borderless windows are indeed a good idea, just keep in mind, that you can only drag them if the cursor is inside the window; löve doesn't expose sdl2's SDL_GetGLobalMouseState, that would be needed for real borderless dragging (in windows, at least); then again, i did try to implement this, and it didn't work on osx, only on windows (didn't test any linux sadly), so yeah.

Re: How to create a new window?

Posted: Wed Aug 19, 2015 8:24 pm
by Rucikir
I really don't know if LOVE could work that way, but perhaps you link it with a gui framework, and use it as an OpenGL context to embed it in a window - or multiple windows, but transmitting inputs, events to LOVE, I don't know if it is possible.
This would require knowledge of C/C++ and the Lua C API.
You can try with Qt (C++, portable), this example might be somewhere to start.
Good luck !

Re: How to create a new window?

Posted: Fri May 08, 2020 6:47 pm
by rafaellonghi
Rickton wrote: Thu Aug 13, 2015 3:05 pm otherwise you'd have to deal with them being different on different OSs.
This is not the theme of this thread but I would like to add that you can make a borderless window and make your own menubar on top, so it wont change in each os and you can draw on it.

Re: How to create a new window?

Posted: Sat May 09, 2020 5:05 am
by zorg
rafaellonghi wrote: Fri May 08, 2020 6:47 pm
Rickton wrote: Thu Aug 13, 2015 3:05 pm otherwise you'd have to deal with them being different on different OSs.
This is not the theme of this thread but I would like to add that you can make a borderless window and make your own menubar on top, so it wont change in each os and you can draw on it.
2015