Can Love2D display multiple windows?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Can Love2D display multiple windows?
I've browsed through the wiki and couldn't find anything that hinted at it.
- Jasoco
- Inner party member
- Posts: 3727
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: Can Love2D display multiple windows?
Can't really think of a reason one would need this in a game environment anyway.
Re: Can Love2D display multiple windows?
I can only think of a fullscreen mode with one window shared across 2 monitors. Sadly this also doesn't work with love.
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: Can Love2D display multiple windows?
You could create two different love games, and make them comunicate via luasockets. But it would be painful and horrible. Making your own "windows" is a much simpler solution.
When I write def I mean function.
Re: Can Love2D display multiple windows?
maybe a puzzle game where you have to physically move windows to solve the puzzles (or some weird artsy platformer or something). somebody's probably done this by now i would imagineJasoco wrote:Can't really think of a reason one would need this in a game environment anyway.
or even something boring like the ability to pop out the hud onto a separate window so you can put it on another monitor or somewhere it isn't occluding the game
or applications. love may technically be for games but game-integrated level editors are always nice
- slime
- Solid Snayke
- Posts: 3170
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Can Love2D display multiple windows?
Multiple windows can be a bit tricky to implement architecturally for GPU-accelerated programs.
If love were to have a separate GL context per window, then sharing resources (images etc.) between them would probably be a big PITA. If the windows shared a single context then it would have different issues, most related to which window has control of the context at any given point in time.
If love were to have a separate GL context per window, then sharing resources (images etc.) between them would probably be a big PITA. If the windows shared a single context then it would have different issues, most related to which window has control of the context at any given point in time.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 3 guests