Does LÖVE (0.9.0) limit the window size to the maximal full screen resolution? Because it seems that way. I am unable to create a window with a width larger than 1920.. which happens to be the maximal full screen resolution of my system. Please tell me there is a way around this.
I used LÖVE as a quick and dirty way to create tile atlases and it worked. But right now I want to make an atlas > 1920pixels wide. Is there a way to do that with LÖVE or do I have to rewrite my atlas maker in C/SDL?
What I have done thus far was simply creating a Window with the size of the atlas I wanted, drew the tiles on it, and then saved a "screenshot" (actually a window dump) to disk (using LÖVE's "screenshot" function). As I said, that worked well.. until now.
If there is no way around the window size limit is there a way to draw to an arbitrary sized offscreen surface and somehow save said surface to a file? I ask because that's what I would do with plain SDL.
Window size limit?!
- slime
- Solid Snayke
- Posts: 3170
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Window size limit?!
[wiki]Canvas[/wiki]es.Hexenhammer wrote:If there is no way around the window size limit is there a way to draw to an arbitrary sized offscreen surface and somehow save said surface to a file? I ask because that's what I would do with plain SDL.
And [wiki]Canvas:getImageData[/wiki].
- Hexenhammer
- Party member
- Posts: 175
- Joined: Sun Feb 17, 2013 8:19 am
Re: Window size limit?!
Thanks! Got it working in no time!slime wrote:[wiki]Canvas[/wiki]es.Hexenhammer wrote:If there is no way around the window size limit is there a way to draw to an arbitrary sized offscreen surface and somehow save said surface to a file? I ask because that's what I would do with plain SDL.
And [wiki]Canvas:getImageData[/wiki].
Re: Window size limit?!
I was planing to use a similar method to generate images on systems that don't support canvas (replacement for canvas – while the level is loading the game would take some screenshots, the screenshots could be saved and then used when needed)Hexenhammer wrote: What I have done thus far was simply creating a Window with the size of the atlas I wanted, drew the tiles on it, and then saved a "screenshot" (actually a window dump) to disk (using LÖVE's "screenshot" function). As I said, that worked well.. until now.
So is there a possibility to add a flag to love.window.setMode that will remove the size limit?
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 10 guests