Can Love2D display multiple windows?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
vine
Prole
Posts: 5
Joined: Sun Dec 02, 2012 4:59 pm

Can Love2D display multiple windows?

Post by vine »

I've browsed through the wiki and couldn't find anything that hinted at it.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Can Love2D display multiple windows?

Post by Robin »

Not currently, no.
Help us help you: attach a .love.
User avatar
Jasoco
Inner party member
Posts: 3725
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Can Love2D display multiple windows?

Post by Jasoco »

Can't really think of a reason one would need this in a game environment anyway.
User avatar
SiENcE
Party member
Posts: 792
Joined: Thu Jul 24, 2008 2:25 pm
Location: Berlin/Germany
Contact:

Re: Can Love2D display multiple windows?

Post by SiENcE »

I can only think of a fullscreen mode with one window shared across 2 monitors. Sadly this also doesn't work with love.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Can Love2D display multiple windows?

Post by kikito »

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.
User avatar
Xgoff
Party member
Posts: 211
Joined: Fri Nov 19, 2010 4:20 am

Re: Can Love2D display multiple windows?

Post by Xgoff »

Jasoco wrote:Can't really think of a reason one would need this in a game environment anyway.
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 imagine

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
User avatar
slime
Solid Snayke
Posts: 3144
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Can Love2D display multiple windows?

Post by slime »

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.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests