What is the difference between love.resize and love.window.updateMode?
Posted: Sun Sep 25, 2022 10:23 am
Hi everyone!
Could someone please tell me what is the difference internally between the callback method love.resize and love.window.updateMode?
The problem is that when I update some values and then call updateMode to change window size, a canvas is no longer drawn on the screen. Everything else is fine except this one canvas is no longer drawn. If I debug it, the position, size, draw order, transparency, everything is fine yet not drawn on the screen.
But when I update the same values inside love.resize, everything is fine and the canvas is drawn with the updated values whenever I resize the window. But this is not what I would like to ask for help with, instead I would like to understand what is the difference between resizing a window and love.resize and calling updateMode so then maybe I can fix this myself.
I would appreciate if someone could explain it.
Thank you.
Could someone please tell me what is the difference internally between the callback method love.resize and love.window.updateMode?
The problem is that when I update some values and then call updateMode to change window size, a canvas is no longer drawn on the screen. Everything else is fine except this one canvas is no longer drawn. If I debug it, the position, size, draw order, transparency, everything is fine yet not drawn on the screen.
But when I update the same values inside love.resize, everything is fine and the canvas is drawn with the updated values whenever I resize the window. But this is not what I would like to ask for help with, instead I would like to understand what is the difference between resizing a window and love.resize and calling updateMode so then maybe I can fix this myself.
I would appreciate if someone could explain it.
Thank you.