I'm searching about how can I get the current love window size.
I saw
getModes() http://love2d.org/docs/love_graphics_getModes_1.html
and
setMode(...) http://love2d.org/docs/love_graphics_setMode_1.html
But i'm search about something like
getMode()
or getCurrentMode()
to get the width/height of the current window.
Thanks
How can I get the current screen/window depth ?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
How can I get the current screen/window depth ?
My projects current projects : dragoon-framework (includes lua-newmodule, lua-provide, lovemodular, , classcommons2, and more ...)
Re: How can I get the current screen/window depth ?
Try using:
Code: Select all
screen_width = love.graphics.getWidth()
screen_height = love.graphics.getHeight()
Re: How can I get the current screen/window depth ?
Oh thanks a lot !
I was not seen it...
Sorry.
I was not seen it...
Sorry.
My projects current projects : dragoon-framework (includes lua-newmodule, lua-provide, lovemodular, , classcommons2, and more ...)
Who is online
Users browsing this forum: No registered users and 0 guests